mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
Rebalance of the melee damage system.
- Heavy objects now take longer to swing and deal more damage. - A hit to the head is more likely to knock you out. - A hit to the torso with a heavy object is more likely to knock you down.
This commit is contained in:
@@ -327,14 +327,15 @@
|
||||
|
||||
var/selfdamage = 0
|
||||
|
||||
afterattack(atom/target as mob|obj|turf|area, mob/user as mob)
|
||||
if(contents.len && istype(user.loc, /turf) && prob(10))
|
||||
// have a chance to swing open
|
||||
user.visible_message("\red \The [src] swings wide open and its contents are scattered on the floor!")
|
||||
for(var/obj/O in contents)
|
||||
O.loc = user.loc
|
||||
if(prob(50)) step_rand(O)
|
||||
..()
|
||||
/obj/item/weapon/storage/toolbox/afterattack(atom/target as mob|obj|turf|area, mob/user as mob)
|
||||
if(contents.len && istype(user.loc, /turf) && prob(10))
|
||||
// have a chance to swing open
|
||||
user.visible_message("\red \The [src] swings wide open and its contents are scattered on the floor!")
|
||||
for(var/obj/O in contents)
|
||||
O.loc = user.loc
|
||||
O.layer = OBJ_LAYER
|
||||
if(prob(50)) step_rand(O)
|
||||
..()
|
||||
|
||||
/obj/item/weapon/storage/toolbox/emergency
|
||||
name = "emergency toolbox"
|
||||
|
||||
Reference in New Issue
Block a user