mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-29 19:52:12 +00:00
Moved the simple_animal folder into /mob/living. - Thanks to tortoiseSVN issues, I will have to remove the old simple_animal folder in a second commit. Moved to living: - maxHealth - health - control_object - incorporeal_move Moved to carbon: - silent - alien_egg_flag Moved to human: (human_defines.dm) - All vars that used to be defined in human.dm - underwear - backbag - miming Deleted from mob: - r_epil //Old var, not used anymore - r_ch_cou //Old var, not used anymore - r_Tourette //Old var, not used anymore - spellvoice() //Old proc, not used anymore - get_damage() //Unused, we have getHealth() that does the same thing Removed some unticked files that have already been replaced. This also fixes cyborgs being 'knocked unconscious' by rolling pins and secure breifcases - Additionally; to knock someone out with a rolling pin you must now be targeting the victims head. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3976 316c924e-a436-60f5-8080-3fe189b3f50e
45 lines
1.6 KiB
Plaintext
45 lines
1.6 KiB
Plaintext
/obj/item/weapon/storage/briefcase/New()
|
|
..()
|
|
new /obj/item/weapon/paper(src)
|
|
new /obj/item/weapon/paper(src)
|
|
new /obj/item/weapon/paper(src)
|
|
new /obj/item/weapon/paper(src)
|
|
new /obj/item/weapon/paper(src)
|
|
new /obj/item/weapon/paper(src)
|
|
new /obj/item/weapon/pen(src)
|
|
|
|
/obj/item/weapon/storage/briefcase/attack(mob/living/M as mob, mob/living/user as mob)
|
|
//..()
|
|
|
|
if ((CLUMSY in user.mutations) && prob(50))
|
|
user << "\red The [src] slips out of your hand and hits your head."
|
|
user.take_organ_damage(10)
|
|
user.Paralyse(2)
|
|
return
|
|
|
|
|
|
M.attack_log += text("\[[time_stamp()]\] <font color='orange'>Has been attacked with [src.name] by [user.name] ([user.ckey])</font>")
|
|
user.attack_log += text("\[[time_stamp()]\] <font color='red'>Used the [src.name] to attack [M.name] ([M.ckey])</font>")
|
|
|
|
log_attack("<font color='red'>[user.name] ([user.ckey]) attacked [M.name] ([M.ckey]) with [src.name] (INTENT: [uppertext(user.a_intent)])</font>")
|
|
|
|
if (M.stat < 2 && M.health < 50 && prob(90))
|
|
var/mob/H = M
|
|
// ******* Check
|
|
if ((istype(H, /mob/living/carbon/human) && istype(H, /obj/item/clothing/head) && H.flags & 8 && prob(80)))
|
|
M << "\red The helmet protects you from being hit hard in the head!"
|
|
return
|
|
var/time = rand(2, 6)
|
|
if (prob(75))
|
|
M.Paralyse(time)
|
|
else
|
|
M.Stun(time)
|
|
if(M.stat != 2) M.stat = 1
|
|
for(var/mob/O in viewers(M, null))
|
|
O.show_message(text("\red <B>[] has been knocked unconscious!</B>", M), 1, "\red You hear someone fall.", 2)
|
|
else
|
|
M << text("\red [] tried to knock you unconcious!",user)
|
|
M.eye_blurry += 3
|
|
|
|
return
|