added NPCs; added tdata submodule

- use environment variable TDATA_PATH to specify the location of the
  tdata directory
This commit is contained in:
2023-06-27 00:36:02 -05:00
parent 80dc876517
commit fd41b32b70
9 changed files with 140 additions and 14 deletions

View File

@@ -14,6 +14,7 @@ import (
DB_USER
DB_PASS
ANNOUNCE_IP
TDATA_PATH
*/
const (
@@ -78,3 +79,7 @@ func GetDBPass() string {
func GetAnnounceIP() string {
return getEnv("ANNOUNCE_IP", "127.0.0.1")
}
func GetTDataPath() string {
return getEnv("TDATA_PATH", "./tdata")
}