mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Toilet fixes
Yes yes. I know. Anyway, there's no cooldown on this so you can give someone about 800 brute in 10 seconds. A LITTLE UNUSUAL if you ask me. Also reduced it from 8 because what the hell is that toilet seat made out of? Osmium? For an armor-ignoring attack that's a little high. Also the swirlie thing was coded wrong for the do_after.
This commit is contained in:
@@ -18,8 +18,9 @@
|
|||||||
|
|
||||||
/obj/structure/toilet/attack_hand(mob/living/user as mob)
|
/obj/structure/toilet/attack_hand(mob/living/user as mob)
|
||||||
if(swirlie)
|
if(swirlie)
|
||||||
|
usr.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
|
||||||
usr.visible_message("<span class='danger'>[user] slams the toilet seat onto [swirlie.name]'s head!</span>", "<span class='notice'>You slam the toilet seat onto [swirlie.name]'s head!</span>", "You hear reverberating porcelain.")
|
usr.visible_message("<span class='danger'>[user] slams the toilet seat onto [swirlie.name]'s head!</span>", "<span class='notice'>You slam the toilet seat onto [swirlie.name]'s head!</span>", "You hear reverberating porcelain.")
|
||||||
swirlie.adjustBruteLoss(8)
|
swirlie.adjustBruteLoss(5)
|
||||||
return
|
return
|
||||||
|
|
||||||
if(cistern && !open)
|
if(cistern && !open)
|
||||||
@@ -53,6 +54,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
if(istype(I, /obj/item/weapon/grab))
|
if(istype(I, /obj/item/weapon/grab))
|
||||||
|
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
|
||||||
var/obj/item/weapon/grab/G = I
|
var/obj/item/weapon/grab/G = I
|
||||||
|
|
||||||
if(isliving(G.affecting))
|
if(isliving(G.affecting))
|
||||||
@@ -65,14 +67,14 @@
|
|||||||
if(open && !swirlie)
|
if(open && !swirlie)
|
||||||
user.visible_message("<span class='danger'>[user] starts to give [GM.name] a swirlie!</span>", "<span class='notice'>You start to give [GM.name] a swirlie!</span>")
|
user.visible_message("<span class='danger'>[user] starts to give [GM.name] a swirlie!</span>", "<span class='notice'>You start to give [GM.name] a swirlie!</span>")
|
||||||
swirlie = GM
|
swirlie = GM
|
||||||
if(do_after(user, 30, 5, 0))
|
if(do_after(user, 30, GM))
|
||||||
user.visible_message("<span class='danger'>[user] gives [GM.name] a swirlie!</span>", "<span class='notice'>You give [GM.name] a swirlie!</span>", "You hear a toilet flushing.")
|
user.visible_message("<span class='danger'>[user] gives [GM.name] a swirlie!</span>", "<span class='notice'>You give [GM.name] a swirlie!</span>", "You hear a toilet flushing.")
|
||||||
if(!GM.internal)
|
if(!GM.internal)
|
||||||
GM.adjustOxyLoss(5)
|
GM.adjustOxyLoss(5)
|
||||||
swirlie = null
|
swirlie = null
|
||||||
else
|
else
|
||||||
user.visible_message("<span class='danger'>[user] slams [GM.name] into the [src]!</span>", "<span class='notice'>You slam [GM.name] into the [src]!</span>")
|
user.visible_message("<span class='danger'>[user] slams [GM.name] into the [src]!</span>", "<span class='notice'>You slam [GM.name] into the [src]!</span>")
|
||||||
GM.adjustBruteLoss(8)
|
GM.adjustBruteLoss(5)
|
||||||
else
|
else
|
||||||
user << "<span class='notice'>You need a tighter grip.</span>"
|
user << "<span class='notice'>You need a tighter grip.</span>"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user