- move arch item scripts to their own folder
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@2892 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
16d1e0224e
commit
bbfcc09ebd
|
@ -0,0 +1,33 @@
|
|||
import CFPython
|
||||
import sys
|
||||
import random
|
||||
|
||||
me = CFPython.WhoAmI()
|
||||
ac = CFPython.WhoIsActivator()
|
||||
r = random.random()
|
||||
|
||||
if (CFPython.IsApplied(me)):
|
||||
if (r <= 0.01):
|
||||
CFPython.SetIdentified(me,0)
|
||||
CFPython.SetCursed(me, 1)
|
||||
CFPython.SetDexterity(me, CFPython.GetDexterity(me)+1)
|
||||
elif (r <= 0.02):
|
||||
CFPython.SetIdentified(me,0)
|
||||
CFPython.SetCursed(me, 1)
|
||||
CFPython.SetIntelligence(me, CFPython.GetIntelligence(me)+1)
|
||||
elif (r <= 0.03):
|
||||
CFPython.SetIdentified(me,0)
|
||||
CFPython.SetCursed(me, 1)
|
||||
CFPython.SetConstitution(me, CFPython.GetConstitution(me)+1)
|
||||
elif (r >= 0.99):
|
||||
CFPython.SetIdentified(me,0)
|
||||
CFPython.SetCursed(me, 1)
|
||||
CFPython.SetDexterity(me, CFPython.GetDexterity(me)-1)
|
||||
elif (r >= 0.98):
|
||||
CFPython.SetIdentified(me,0)
|
||||
CFPython.SetCursed(me, 1)
|
||||
CFPython.SetIntelligence(me, CFPython.GetIntelligence(me)-1)
|
||||
elif (r >= 0.97):
|
||||
CFPython.SetIdentified(me,0)
|
||||
CFPython.SetCursed(me, 1)
|
||||
CFPython.SetConstitution(me, CFPython.GetConstitution(me)-1)
|
|
@ -0,0 +1,38 @@
|
|||
import CFPython
|
||||
import sys
|
||||
import random
|
||||
|
||||
me = CFPython.WhoAmI()
|
||||
ac = CFPython.WhoIsActivator()
|
||||
r = random.random()
|
||||
|
||||
if (r <= 0.01):
|
||||
CFPython.Write("Your weapon suddenly seems lighter !",ac)
|
||||
CFPython.SetDamage(me,CFPython.GetDamage(me)+10)
|
||||
CFPython.SetIdentified(me,0)
|
||||
CFPython.SetBeenApplied(me,0)
|
||||
elif (r <= 0.02):
|
||||
CFPython.Write("Your weapon suddenly seems darker !",ac)
|
||||
CFPython.SetDamage(me,CFPython.GetDamage(me)-10)
|
||||
CFPython.SetIdentified(me,0)
|
||||
CFPython.SetBeenApplied(me,0)
|
||||
elif (r <= 0.03):
|
||||
CFPython.Write("Your weapon suddenly seems lighter !",ac)
|
||||
CFPython.SetDamage(me,CFPython.GetDamage(me)+10)
|
||||
CFPython.SetIdentified(me,0)
|
||||
CFPython.SetBeenApplied(me,0)
|
||||
elif (r <= 0.04):
|
||||
CFPython.Write("Your weapon suddenly seems colder !",ac)
|
||||
CFPython.SetAttackType(me,CFPython.AttackTypeCold() + CFPython.AttackTypePhysical())
|
||||
CFPython.SetIdentified(me,0)
|
||||
CFPython.SetBeenApplied(me,0)
|
||||
elif (r <= 0.05):
|
||||
CFPython.Write("Your weapon suddenly seems warmer !",ac)
|
||||
CFPython.SetAttackType(me,CFPython.AttackTypeFire() + CFPython.AttackTypePhysical())
|
||||
CFPython.SetIdentified(me,0)
|
||||
CFPython.SetBeenApplied(me,0)
|
||||
elif (r <= 0.06):
|
||||
CFPython.Write("Your weapon suddenly emits sparks !",ac)
|
||||
CFPython.SetAttackType(me,CFPython.AttackTypeElectricity() + CFPython.AttackTypePhysical())
|
||||
CFPython.SetIdentified(me,0)
|
||||
CFPython.SetBeenApplied(me,0)
|
Loading…
Reference in New Issue