Difference for python/items/weapon_occidental_mages.py from version 1.2 to 1.3


version 1.2 version 1.3
Line 1
 
Line 1
 import CFPython  import Crossfire
 import random  import random
   
 me = CFPython.WhoAmI()  me = Crossfire.WhoAmI()
 ac = CFPython.WhoIsActivator()  ac = Crossfire.WhoIsActivator()
 r  = random.random()  r  = random.random()
   
 if (r <= 0.01):  if (r <= 0.01):
     CFPython.Write("Your weapon suddenly seems lighter !",ac)      ac.Write("Your weapon suddenly seems lighter !")
     CFPython.SetDamage(me,CFPython.GetDamage(me)+10)      me.Damage=me.Damage+10
     CFPython.SetIdentified(me,0)      me.Identified=0
     CFPython.SetBeenApplied(me,0)      me.BeenApplied=0
 elif (r <= 0.02):  elif (r <= 0.02):
     CFPython.Write("Your weapon suddenly seems darker !",ac)      ac.Write("Your weapon suddenly seems darker !")
     CFPython.SetDamage(me,CFPython.GetDamage(me)-10)      me.Damage=me.Damage-10
     CFPython.SetIdentified(me,0)      me.Identified=0
     CFPython.SetBeenApplied(me,0)      me.BeenApplied=0
 elif (r <= 0.03):  elif (r <= 0.03):
     CFPython.Write("Your weapon suddenly seems lighter !",ac)      ac.Write("Your weapon suddenly seems lighter !")
     CFPython.SetDamage(me,CFPython.GetDamage(me)+10)      me.Damage=me.Damage+10
     CFPython.SetIdentified(me,0)      me.Identified=0
     CFPython.SetBeenApplied(me,0)      me.BeenApplied=0
 elif (r <= 0.04):  elif (r <= 0.04):
     CFPython.Write("Your weapon suddenly seems colder !",ac)      ac.Write("Your weapon suddenly seems colder !")
     CFPython.SetAttackType(me,CFPython.AttackTypeCold() + CFPython.AttackTypePhysical())      me.AttackType=Crossfire.AttackTypeCold() + Crossfire.AttackTypePhysical())
     CFPython.SetIdentified(me,0)      me.Identified=0
     CFPython.SetBeenApplied(me,0)      me.BeenApplied=0
 elif (r <= 0.05):  elif (r <= 0.05):
     CFPython.Write("Your weapon suddenly seems warmer !",ac)      ac.Write("Your weapon suddenly seems warmer !")
     CFPython.SetAttackType(me,CFPython.AttackTypeFire() + CFPython.AttackTypePhysical())      me.AttackType=Crossfire.AttackTypeFire() + Crossfire.AttackTypePhysical())
     CFPython.SetIdentified(me,0)      me.Identified=0
     CFPython.SetBeenApplied(me,0)      me.BeenApplied=0
 elif (r <= 0.06):  elif (r <= 0.06):
     CFPython.Write("Your weapon suddenly emits sparks !",ac)      ac.Write("Your weapon suddenly emits sparks !")
     CFPython.SetAttackType(me,CFPython.AttackTypeElectricity() + CFPython.AttackTypePhysical())      me.AttackType=Crossfire.AttackTypeElectricity() + Crossfire.AttackTypePhysical())
     CFPython.SetIdentified(me,0)      me.Identified=0
     CFPython.SetBeenApplied(me,0)      me.BeenApplied=0


Legend:
line(s) removed in v.1.2 
line(s) changed
 line(s) added in v.1.3

File made using version 1.96 of cvs2html by leaf at 2006-02-15 17:34