Skip to content
Snippets Groups Projects
Commit 34c052b2 authored by DarkGod's avatar DarkGod
Browse files

poison water can be told to be nice

parent dbfef011
No related branches found
No related tags found
No related merge requests found
......@@ -164,6 +164,8 @@ newEntity{
mindam = resolvers.mbonus(10, 25),
maxdam = resolvers.mbonus(20, 50),
on_stand = function(self, x, y, who)
if self.faction and who:reactionToward(self.faction) >= 0 then return end
local DT = engine.DamageType
local dam = DT:get(DT.POISON).projector(self, x, y, DT.POISON, rng.range(self.mindam, self.maxdam))
if dam > 0 then game.logPlayer(who, "The water poisons you!") end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment