sometimes guards DO wander inside, so that was bad
This commit is contained in:
parent
ea93b0feb5
commit
f98c564a0d
1 changed files with 5 additions and 7 deletions
|
@ -5,10 +5,9 @@ local this = {}
|
||||||
this.modName = "More Attentive Guards" -- or something
|
this.modName = "More Attentive Guards" -- or something
|
||||||
this.author = "Celediel"
|
this.author = "Celediel"
|
||||||
this.version = "1.0.3"
|
this.version = "1.0.3"
|
||||||
this.modInfo = [[Guards with some actual spatial awareness!
|
this.modInfo = "Guards with some actual spatial awareness!\n\n" ..
|
||||||
|
"Guards who catch you sneaking will follow you for a bit of" ..
|
||||||
Guards who catch you sneaking will follow you for a bit of
|
"time, and will also come to the player's rescue if attacked unprovoked."
|
||||||
time, and will also come to the player's rescue if attacked unprovoked.]]
|
|
||||||
this.dialogues = require("celediel.MoreAttentiveGuards.dialogues")
|
this.dialogues = require("celediel.MoreAttentiveGuards.dialogues")
|
||||||
this.configString = string.gsub(this.modName, "%s+", "")
|
this.configString = string.gsub(this.modName, "%s+", "")
|
||||||
|
|
||||||
|
@ -35,9 +34,8 @@ this.generateIdles = function()
|
||||||
end
|
end
|
||||||
|
|
||||||
this.generateWanderRange = function(cell)
|
this.generateWanderRange = function(cell)
|
||||||
-- don't wander inside?
|
-- wander less inside?
|
||||||
-- shitty "fix" for stationary NPCs remaining stationary
|
return (cell.isInterior and not cell.behavesAsExterior) and 200 or 2000
|
||||||
return (cell.isInterior and not cell.behavesAsExterior) and 0 or 2000
|
|
||||||
end
|
end
|
||||||
|
|
||||||
this.guardDialogue = function(npc, str, target)
|
this.guardDialogue = function(npc, str, target)
|
||||||
|
|
Loading…
Add table
Reference in a new issue