mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +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
@@ -57,17 +57,18 @@
|
||||
else
|
||||
return ..()
|
||||
|
||||
/obj/structure/fermenting_barrel/attack_hand(mob/user)
|
||||
if(can_open)
|
||||
open = !open
|
||||
if(open)
|
||||
reagents.flags &= ~(DRAINABLE)
|
||||
reagents.flags |= REFILLABLE | TRANSPARENT
|
||||
to_chat(user, "<span class='notice'>You open [src], letting you fill it.</span>")
|
||||
else
|
||||
reagents.flags |= DRAINABLE
|
||||
reagents.flags &= ~(REFILLABLE | TRANSPARENT)
|
||||
to_chat(user, "<span class='notice'>You close [src], letting you draw from its tap.</span>")
|
||||
/obj/structure/fermenting_barrel/attack_hand(mob/user, list/modifiers)
|
||||
if(!can_open)
|
||||
return
|
||||
open = !open
|
||||
if(open)
|
||||
reagents.flags &= ~(DRAINABLE)
|
||||
reagents.flags |= REFILLABLE | TRANSPARENT
|
||||
to_chat(user, "<span class='notice'>You open [src], letting you fill it.</span>")
|
||||
else
|
||||
reagents.flags |= DRAINABLE
|
||||
reagents.flags &= ~(REFILLABLE | TRANSPARENT)
|
||||
to_chat(user, "<span class='notice'>You close [src], letting you draw from its tap.</span>")
|
||||
update_icon()
|
||||
|
||||
/obj/structure/fermenting_barrel/update_icon_state()
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
foodtypes = FRUIT
|
||||
wine_power = 50
|
||||
|
||||
/obj/item/food/grown/ghost_chili/attack_hand(mob/user)
|
||||
/obj/item/food/grown/ghost_chili/attack_hand(mob/user, list/modifiers)
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
|
||||
@@ -211,7 +211,7 @@
|
||||
return ..()
|
||||
|
||||
|
||||
/obj/structure/bonfire/attack_hand(mob/user)
|
||||
/obj/structure/bonfire/attack_hand(mob/user, list/modifiers)
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
|
||||
@@ -740,7 +740,7 @@
|
||||
|
||||
return ..()
|
||||
|
||||
/obj/machinery/hydroponics/attack_hand(mob/user)
|
||||
/obj/machinery/hydroponics/attack_hand(mob/user, list/modifiers)
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user