Update of /cvsroot/wpdev/xmlscripts/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4384
Modified Files:
bandages.py
Log Message:
fixed a bug
using system.poison now
Index: bandages.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/bandages.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** bandages.py 3 Sep 2004 17:07:50 -0000 1.11
--- bandages.py 3 Sep 2004 18:19:58 -0000 1.12
***************
*** 2,5 ****
--- 2,6 ----
import wolfpack
import random
+ import system.poison
import wolfpack.utilities
from wolfpack.consts import HEALING, ANATOMY, VETERINARY, ANIMALLORE
***************
*** 100,105 ****
--- 101,108 ----
if target == char:
char.socket.clilocmessage(1061288)
+ #You do not require healing.
else:
char.socket.clilocmessage(500955)
+ #that being is not damaged
return 0
***************
*** 126,138 ****
if corpse and ( char.skill[ HEALING ] < 800 or char.skill[ ANATOMY ] < 800 ):
! char.socket.sysmessage("1")
return
if target.char and target.char.dead and ( char.skill[ HEALING ] < 800 or char.skill[ ANATOMY ] < 800 ):
! char.socket.sysmessage("You are not skilled enough for that.")
return
! if target.char and target.poison > -1 and ( char.skill[ HEALING ] < 600 or char.skill[ ANATOMY ] < 600 ):
! char.socket.sysmessage("You are not skilled enough for that.")
return
--- 129,141 ----
if corpse and ( char.skill[ HEALING ] < 800 or char.skill[ ANATOMY ] < 800 ):
! char.socket.sysmessage("You are not skilled enough to heal the dead")
return
if target.char and target.char.dead and ( char.skill[ HEALING ] < 800 or char.skill[ ANATOMY ] < 800 ):
! char.socket.sysmessage("You are not skilled enough to heal the dead.")
return
! if target.char and target.char.poison > -1 and ( char.skill[ HEALING ] < 600 or char.skill[ ANATOMY ] < 600 ):
! char.socket.sysmessage("You are not skilled enough to cure poisons.")
return
***************
*** 260,265 ****
return
! target.poison=-1
! target.update()
if target <> char:
target.socket.clilocmessage(1010059)
--- 263,268 ----
return
! system.poison.cure(target)
!
if target <> char:
target.socket.clilocmessage(1010059)
|