mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 11:05:03 +01:00
Updated all suicide_act()s to use a new span class, 'suicide'.
Conflicts: code/game/objects/items/stacks/sheets/glass.dm code/game/objects/items/weapons/melee/energy.dm code/game/objects/items/weapons/melee/misc.dm code/game/objects/items/weapons/stunbaton.dm code/game/objects/items/weapons/weaponry.dm code/modules/hydroponics/growninedible.dm code/modules/hydroponics/hydroitemdefines.dm code/modules/surgery/tools.dm code/stylesheet.dm
This commit is contained in:
committed by
ZomgPonies
parent
0ec4a502fe
commit
331cf1df95
@@ -235,7 +235,6 @@
|
||||
* Glass shards - TODO: Move this into code/game/object/item/weapons
|
||||
*/
|
||||
/obj/item/weapon/shard/Bump()
|
||||
|
||||
spawn( 0 )
|
||||
if (prob(20))
|
||||
src.force = 15
|
||||
@@ -245,6 +244,25 @@
|
||||
return
|
||||
return
|
||||
|
||||
/obj/item/weapon/shard
|
||||
name = "shard"
|
||||
desc = "A nasty looking shard of glass."
|
||||
icon = 'icons/obj/shards.dmi'
|
||||
icon_state = "large"
|
||||
w_class = 1.0
|
||||
force = 5.0
|
||||
throwforce = 15.0
|
||||
item_state = "shard-glass"
|
||||
g_amt = 3750
|
||||
attack_verb = list("stabbed", "slashed", "sliced", "cut")
|
||||
|
||||
suicide_act(mob/user)
|
||||
viewers(user) << pick("<span class='suicide'>[user] is slitting \his wrists with the shard of glass! It looks like \he's trying to commit suicide.</span>", \
|
||||
"<span class='suicide'>[user] is slitting \his throat with the shard of glass! It looks like \he's trying to commit suicide.</span>")
|
||||
return (BRUTELOSS)
|
||||
|
||||
|
||||
|
||||
/obj/item/weapon/shard/New()
|
||||
|
||||
src.icon_state = pick("large", "medium", "small")
|
||||
@@ -463,4 +481,4 @@
|
||||
src.use(2)
|
||||
else
|
||||
return 1
|
||||
return 0
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user