obj
verb
get(obj/O in usr.loc)
set src in usr.loc
usr.ColdFire()
if(!usr.ColdFire())
return 0
if(usr.ColdFire())
loc = usr
usr << "You pick up \a [O]."
drop(obj/O)
set src in usr
loc = usr.loc
obj/coldfire
name = "Cold Fire"
icon = 'icons2.dmi'
icon_state = "coldfire"
obj
container
icon = 'icons2.dmi'
icon_state = "container"
mob/var/cfq
mob
proc
ColdFire(var/obj/container/C = locate() in src.contents)
if(!C)
src << "You try to pick it up but it burns your hands!"
src.SP-=5
src.DeathCheck()
return 0
if(C)
cfq = input("Use your bottle to contain the Cold Fire?")in list("Yes","No")
if(cfq == "Yes")
return 1
if(cfq == "No")
return 0
mob
proc
DeathCheck()
if(src.SP==0) del src
return..()
When I use get and I don't have a container, It returns "You try to pick it up but it burns your hands!" twice. Any suggestions? It also subtracts 5 shock points (SP) twice.
if(!usr.ColdFire())
if(usr.ColdFire())
Maybe because you're calling it three times? Remove everything but the last if().