mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
[MIRROR] Converts many proc overrides to properly use list/modifiers, lots of other smaller things (#3433)
* Converts many proc overrides to properly use list/modifiers, lots of other smaller things * Update human_defense.dm Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: Gandalf2k15 <jzo123@hotmail.com>
This commit is contained in:
co-authored by
LemonInTheDark
Gandalf2k15
parent
6f01502b33
commit
43febe3145
@@ -79,10 +79,10 @@
|
||||
create_reagents(20)
|
||||
reagents.add_reagent(dispensedreagent, 20)
|
||||
|
||||
/obj/structure/sink/oil_well/attack_hand(mob/M)
|
||||
/obj/structure/sink/oil_well/attack_hand(mob/user, list/modifiers)
|
||||
flick("puddle-oil-splash",src)
|
||||
reagents.expose(M, TOUCH, 20) //Covers target in 20u of oil.
|
||||
to_chat(M, "<span class='notice'>You touch the pool of oil, only to get oil all over yourself. It would be wise to wash this off with water.</span>")
|
||||
reagents.expose(user, TOUCH, 20) //Covers target in 20u of oil.
|
||||
to_chat(user, "<span class='notice'>You touch the pool of oil, only to get oil all over yourself. It would be wise to wash this off with water.</span>")
|
||||
|
||||
/obj/structure/sink/oil_well/attackby(obj/item/O, mob/living/user, params)
|
||||
flick("puddle-oil-splash",src)
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
return QDEL_HINT_LETMELIVE
|
||||
|
||||
//ATTACK HAND IGNORING PARENT RETURN VALUE
|
||||
/obj/structure/necropolis_gate/attack_hand(mob/user)
|
||||
/obj/structure/necropolis_gate/attack_hand(mob/user, list/modifiers)
|
||||
if(locked)
|
||||
to_chat(user, "<span class='boldannounce'>It's [open ? "stuck open":"locked"].</span>")
|
||||
return
|
||||
@@ -155,7 +155,7 @@ GLOBAL_DATUM(necropolis_gate, /obj/structure/necropolis_gate/legion_gate)
|
||||
return QDEL_HINT_LETMELIVE
|
||||
|
||||
//ATTACK HAND IGNORING PARENT RETURN VALUE
|
||||
/obj/structure/necropolis_gate/legion_gate/attack_hand(mob/user)
|
||||
/obj/structure/necropolis_gate/legion_gate/attack_hand(mob/user, list/modifiers)
|
||||
if(!open && !changing_openness)
|
||||
var/safety = alert(user, "You think this might be a bad idea...", "Knock on the door?", "Proceed", "Abort")
|
||||
if(safety == "Abort" || !in_range(src, user) || !src || open || changing_openness || user.incapacitated())
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
canvas rotting away and contents vanishing.</span>")
|
||||
qdel(src)
|
||||
|
||||
/obj/structure/cursed_money/attack_hand(mob/living/user)
|
||||
/obj/structure/cursed_money/attack_hand(mob/living/user, list/modifiers)
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
|
||||
@@ -293,13 +293,13 @@ GLOBAL_VAR_INIT(hhMysteryRoomNumber, rand(1, 999999))
|
||||
/turf/closed/indestructible/hoteldoor/attack_tk(mob/user)
|
||||
return //need to be close.
|
||||
|
||||
/turf/closed/indestructible/hoteldoor/attack_hand(mob/user)
|
||||
/turf/closed/indestructible/hoteldoor/attack_hand(mob/user, list/modifiers)
|
||||
promptExit(user)
|
||||
|
||||
/turf/closed/indestructible/hoteldoor/attack_animal(mob/user)
|
||||
/turf/closed/indestructible/hoteldoor/attack_animal(mob/user, list/modifiers)
|
||||
promptExit(user)
|
||||
|
||||
/turf/closed/indestructible/hoteldoor/attack_paw(mob/user)
|
||||
/turf/closed/indestructible/hoteldoor/attack_paw(mob/user, list/modifiers)
|
||||
promptExit(user)
|
||||
|
||||
/turf/closed/indestructible/hoteldoor/attack_hulk(mob/living/carbon/human/user)
|
||||
|
||||
Reference in New Issue
Block a user