24 act = Crossfire.WhoIsActivator()
25 l = Crossfire.WhoAmI()
27 charges = l.ReadKey(
'sunnista_charges')
29 charges =
int(charges)
33 act.Message(
'The %s vibrates slightly.'%l.Name)
36 m = Crossfire.CreateObjectByName(affect)
37 m.MaxHP = m.MaxHP * charges
39 m.Dam = m.Dam * charges
47 m.Teleport(act.Map, act.X, act.Y)
48 l.WriteKey(
'sunnista_charges',
'0', 1)
49 act.Message(
'The %s spits a %s!'%(l.Name, affect))
52 l = Crossfire.WhoAmI()
53 charges = l.ReadKey(
'sunnista_charges')
55 charges =
int(charges)
59 Crossfire.WhoIsActivator().
Message(
'The %s absorbs some %s!'%(l.Name, affect_pl))
62 l.WriteKey(
'sunnista_charges',
str(charges), 1)
63 if charges > max_charges:
69 l = Crossfire.WhoAmI()
70 act = Crossfire.WhoIsActivator()
74 item = Crossfire.WhoIsActivator().Map.ObjectAt(act.X + rx - 2, act.Y + ry - 2)
76 if item.ArchName == affect
and item.Friendly == 0:
85 Crossfire.SetReturnValue(1)