mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-23 21:26:30 +01:00
- Added disease longevity - Added magboots. They prevent slipping. In space or on wet floors. Found in EVA. - Small meteor fixes. - Some comments and general faggotry. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@364 316c924e-a436-60f5-8080-3fe189b3f50e
40 lines
904 B
Plaintext
40 lines
904 B
Plaintext
/*
|
|
CONTAINS:
|
|
BANANANANANA
|
|
BANANA PEEL
|
|
BIKE HORN
|
|
|
|
*/
|
|
|
|
/obj/item/weapon/banana/attack_self(mob/M as mob)
|
|
var/obj/item/weapon/bananapeel/W = new /obj/item/weapon/bananapeel( M )
|
|
M << "\blue You peel the banana."
|
|
if (M.hand)
|
|
M.l_hand = W
|
|
else
|
|
M.r_hand = W
|
|
W.layer = 20
|
|
W.add_fingerprint(M)
|
|
del(src)
|
|
return
|
|
|
|
/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
|
|
|
|
M.pulling = null
|
|
M << "\blue You slipped on the banana peel!"
|
|
playsound(src.loc, 'slip.ogg', 50, 1, -3)
|
|
M.stunned = 8
|
|
M.weakened = 5
|
|
|
|
/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 |