Debian Codegraph @

python/items/curse_on_apply.py

raw
1 import Crossfire
2
3 me = Crossfire.WhoAmI()
4 ac = Crossfire.WhoIsActivator()
5
6 # Since this checks before equipping actually occurs, Applied will be 0 when we apply
7 if me.Applied == 0:
8 ac.Write("You feel the "+me.Name+" bind to you.")
9 me.Cursed = 1
10 me.KnownCursed = 1