Fixed construction merchant lad

This commit is contained in:
ceikry
2021-07-03 20:06:25 -05:00
parent a56635c52e
commit 43cd0d086f
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -6081,7 +6081,7 @@
},
{
"npc_id": "4250",
"loc_data": "{3302,3492,0,1,3}"
"loc_data": "{3302,3492,0,1,6}"
},
{
"npc_id": "4251",
@@ -255,6 +255,7 @@ NPCConfigParser {
"aggressive",
"poisonous",
"poison_immune",
"facing_booth",
"water_npc"-> configs.put(it.key.toString(), it.value.toString().toBoolean())
else -> SystemLogger.logWarn("Unhandled key for npc config: ${it.key.toString()}")
}
@@ -31,6 +31,9 @@ class NPCSpawner {
npc.isWalks = tokens[3].trim { it <= ' ' } == "1"
npc.direction = Direction.values()[Integer.valueOf(tokens[4].trim { it <= ' ' })]
npc.setAttribute("spawned:npc", true)
if(npc.definition.getConfiguration("facing_booth",false)){
npc.setAttribute("facing_booth",true)
}
npc.init()
count++
}