Skip to content
Snippets Groups Projects
Commit fb1ad158 authored by dg's avatar dg
Browse files

The cloak from the path of the deads now works for the alchemist's golem too

git-svn-id: http://svn.net-core.org/repos/t-engine4@1263 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4af3bb14
No related branches found
No related tags found
No related merge requests found
......@@ -38,11 +38,13 @@ newEntity{ define_as = "CLOAK_DECEPTION",
on_wear = function(self, who)
who.old_faction_cloak = who.faction
who.faction = "reunited-kingdom"
if who.alchemy_golem then who.alchemy_golem.faction = who.faction end
if who.player then engine.Map:setViewerFaction(who.faction) end
game.logPlayer(who, "#LIGHT_BLUE#An illusion appears around %s, making it appear human.", who.name:capitalize())
end,
on_takeoff = function(self, who)
who.faction = who.old_faction_cloak
if who.alchemy_golem then who.alchemy_golem.faction = who.faction end
if who.player then engine.Map:setViewerFaction(who.faction) end
game.logPlayer(who, "#LIGHT_BLUE#The illusion covering %s disappears", who.name:capitalize())
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