Chemicals now react in mobs, old reaching restrictions, fixed a give bug, tried to fix a resting bug.

This commit is contained in:
SkyMarshal
2012-03-18 11:35:52 -07:00
parent 46c97cbe4e
commit 0d2b327ded
5 changed files with 39 additions and 151 deletions

View File

@@ -46,9 +46,9 @@ mob/living/carbon/verb/give()
I.layer = 20
I.add_fingerprint(src)
src.update_clothing()
src.visible_message(src,"[usr.name] handed \the [I.name] to [src.name].")
src.visible_message("[usr.name] handed \the [I.name] to [src.name].")
if("No")
src.visible_message(src,"[usr.name] tried to hand [I.name] to [src.name] but [src.name] didn't want it.")
src.visible_message("[usr.name] tried to hand [I.name] to [src.name] but [src.name] didn't want it.")
else if(src.l_hand == null)
switch(alert(src,"[src.name] wants to give you \a [I.name]?",,"Yes","No"))
if("Yes")
@@ -75,8 +75,8 @@ mob/living/carbon/verb/give()
I.layer = 20
I.add_fingerprint(src)
src.update_clothing()
src.visible_message(src,"[usr.name] handed \the [I.name] to [src.name].")
src.visible_message("[usr.name] handed \the [I.name] to [src.name].")
if("No")
src.visible_message(src,"[usr.name] tried to hand [I.name] to [src.name] but [src.name] didn't want it.")
src.visible_message("[usr.name] tried to hand [I.name] to [src.name] but [src.name] didn't want it.")
else
usr << "[src.name]\s hands are full."

View File

@@ -421,7 +421,7 @@
usr.sleeping = 1
usr.sleeping_willingly = 1
if("rest")
usr.resting = !( usr.resting )
usr.resting = !usr.resting
if("throw")
if (!usr.stat && isturf(usr.loc) && !usr.restrained())
usr:toggle_throw_mode()