~ubuntu-branches/ubuntu/vivid/crossfire-maps-small/vivid

« back to all changes in this revision

Viewing changes to python/weapon_occidental_mages.py

  • Committer: Bazaar Package Importer
  • Author(s): Kari Pahula
  • Date: 2005-10-08 08:32:13 UTC
  • Revision ID: james.westby@ubuntu.com-20051008083213-3bd8kcyrk6e8zanf
Tags: upstream-1.5.0
ImportĀ upstreamĀ versionĀ 1.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import CFPython
 
2
import sys
 
3
import random
 
4
 
 
5
me = CFPython.WhoAmI()
 
6
ac = CFPython.WhoIsActivator()
 
7
r  = random.random()
 
8
 
 
9
if (r <= 0.01):
 
10
    CFPython.Write("Your weapon suddenly seems lighter !",ac)
 
11
    CFPython.SetDamage(me,CFPython.GetDamage(me)+10)
 
12
    CFPython.SetIdentified(me,0)
 
13
    CFPython.SetBeenApplied(me,0)
 
14
elif (r <= 0.02):
 
15
    CFPython.Write("Your weapon suddenly seems darker !",ac)
 
16
    CFPython.SetDamage(me,CFPython.GetDamage(me)-10)
 
17
    CFPython.SetIdentified(me,0)
 
18
    CFPython.SetBeenApplied(me,0)
 
19
elif (r <= 0.03):
 
20
    CFPython.Write("Your weapon suddenly seems lighter !",ac)
 
21
    CFPython.SetDamage(me,CFPython.GetDamage(me)+10)
 
22
    CFPython.SetIdentified(me,0)
 
23
    CFPython.SetBeenApplied(me,0)
 
24
elif (r <= 0.04):
 
25
    CFPython.Write("Your weapon suddenly seems colder !",ac)
 
26
    CFPython.SetAttackType(me,CFPython.AttackTypeCold() + CFPython.AttackTypePhysical())
 
27
    CFPython.SetIdentified(me,0)
 
28
    CFPython.SetBeenApplied(me,0)
 
29
elif (r <= 0.05):
 
30
    CFPython.Write("Your weapon suddenly seems warmer !",ac)
 
31
    CFPython.SetAttackType(me,CFPython.AttackTypeFire() + CFPython.AttackTypePhysical())
 
32
    CFPython.SetIdentified(me,0)
 
33
    CFPython.SetBeenApplied(me,0)
 
34
elif (r <= 0.06):
 
35
    CFPython.Write("Your weapon suddenly emits sparks !",ac)
 
36
    CFPython.SetAttackType(me,CFPython.AttackTypeElectricity() + CFPython.AttackTypePhysical())
 
37
    CFPython.SetIdentified(me,0)
 
38
    CFPython.SetBeenApplied(me,0)