mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +01:00
Give fix (#628), some silly compile fix.
This commit is contained in:
@@ -46,9 +46,9 @@ mob/living/carbon/verb/give()
|
||||
I.layer = 20
|
||||
I.add_fingerprint(src)
|
||||
src.update_clothing()
|
||||
action_message(src,"[usr.name] handed \the [I.name] to [src.name].")
|
||||
src.visible_message(src,"[usr.name] handed \the [I.name] to [src.name].")
|
||||
if("No")
|
||||
action_message(src,"[usr.name] tried to hand [I.name] to [src.name] but [src.name] didn't want it.")
|
||||
src.visible_message(src,"[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,24 +75,8 @@ mob/living/carbon/verb/give()
|
||||
I.layer = 20
|
||||
I.add_fingerprint(src)
|
||||
src.update_clothing()
|
||||
action_message(src,"[usr.name] handed \the [I.name] to [src.name].")
|
||||
src.visible_message(src,"[usr.name] handed \the [I.name] to [src.name].")
|
||||
if("No")
|
||||
action_message(src,"[usr.name] tried to hand [I.name] to [src.name] but [src.name] didn't want it.")
|
||||
src.visible_message(src,"[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."
|
||||
|
||||
proc/action_message(var/mob/living/carbon/A,var/message)
|
||||
if (message != "")
|
||||
if (1 & 1)
|
||||
for (var/mob/O in viewers(A.loc, null))
|
||||
O.show_message(message, 1)
|
||||
else if (1 & 2)
|
||||
for (var/mob/O in hearers(A.loc, null))
|
||||
O.show_message(message, 1)
|
||||
else if (message != "")
|
||||
if (1 & 1)
|
||||
for (var/mob/O in viewers(A, null))
|
||||
O.show_message(message, 1)
|
||||
else if (1 & 2)
|
||||
for (var/mob/O in hearers(A, null))
|
||||
O.show_message(message, 1)
|
||||
usr << "[src.name]\s hands are full."
|
||||
Reference in New Issue
Block a user