fixed timers not being reset on load (thanks abot)

This commit is contained in:
Lilian Jónsdóttir 2020-07-26 00:38:56 -07:00
parent fee43d102b
commit 34d29fffe2
2 changed files with 10 additions and 1 deletions

View file

@ -4,7 +4,7 @@ local this = {}
this.modName = "More Attentive Guards" -- or something
this.author = "Celediel"
this.version = "1.0.2"
this.version = "1.0.3"
this.modInfo = [[Guards with some actual spacial awareness!
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.]]

View file

@ -159,6 +159,15 @@ this.onCalcMoveSpeed = function(e)
end
end
this.onLoaded = function(e)
-- some clean-up
follower = nil
followTimer = nil
dialogueTimer = nil
ogPosition = nil
isFollowing = false
end
-- }}}
return this