mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-29 19:52:12 +00:00
68 lines
1.9 KiB
Plaintext
68 lines
1.9 KiB
Plaintext
/*
|
|
CONTAINS:
|
|
NO MORE BANANA, NOW YOU CAN EAT IT. GO SEE OTHER FOOD STUFFS.
|
|
BANANA PEEL
|
|
SOAP
|
|
BIKE HORN
|
|
|
|
*/
|
|
|
|
/obj/item/weapon/bananapeel/HasEntered(AM as mob|obj)
|
|
if (istype(AM, /mob/living/carbon))
|
|
var/mob/M = AM
|
|
if (istype(M, /mob/living/carbon/human) && (isobj(M:shoes) && M:shoes.flags&NOSLIP))
|
|
return
|
|
if (istype(M, /mob/living/carbon/metroid)) //I mean they float, seriously. - Erthilo
|
|
return
|
|
|
|
M.pulling = null
|
|
M << "\blue You slipped on the [name]!"
|
|
playsound(src.loc, 'slip.ogg', 50, 1, -3)
|
|
M.Stun(4)
|
|
M.Weaken(2)
|
|
|
|
/obj/item/weapon/reagent_containers/food/snacks/grown/bluetomato/HasEntered(AM as mob|obj)
|
|
if (istype(AM, /mob/living/carbon))
|
|
var/mob/M = AM
|
|
if (istype(M, /mob/living/carbon/human) && (isobj(M:shoes) && M:shoes.flags&NOSLIP))
|
|
return
|
|
if (istype(M, /mob/living/carbon/metroid))
|
|
return
|
|
|
|
M.pulling = null
|
|
M << "\blue You slipped on the [name]!"
|
|
playsound(src.loc, 'slip.ogg', 50, 1, -3)
|
|
M.Stun(8)
|
|
M.Weaken(5)
|
|
|
|
/obj/item/weapon/soap/HasEntered(AM as mob|obj) //EXACTLY the same as bananapeel for now, so it makes sense to put it in the same dm -- Urist
|
|
if (istype(AM, /mob/living/carbon))
|
|
var/mob/M = AM
|
|
if (istype(M, /mob/living/carbon/human) && (isobj(M:shoes) && M:shoes.flags&NOSLIP))
|
|
return
|
|
if (istype(M, /mob/living/carbon/metroid))
|
|
return
|
|
|
|
M.pulling = null
|
|
M << "\blue You slipped on the [name]!"
|
|
playsound(src.loc, 'slip.ogg', 50, 1, -3)
|
|
M.Stun(3)
|
|
M.Weaken(2)
|
|
|
|
/obj/item/weapon/soap/afterattack(atom/target, mob/user as mob)
|
|
if(istype(target,/obj/effect/decal/cleanable))
|
|
user << "\blue You scrub the [target.name] out."
|
|
del(target)
|
|
else
|
|
user << "\blue You clean the [target.name]."
|
|
target.clean_blood()
|
|
return
|
|
|
|
/obj/item/weapon/bikehorn/attack_self(mob/user as mob)
|
|
if (spam_flag == 0)
|
|
spam_flag = 1
|
|
playsound(src.loc, 'bikehorn.ogg', 50, 1)
|
|
src.add_fingerprint(user)
|
|
spawn(20)
|
|
spam_flag = 0
|
|
return |