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:
cib
2012-03-21 20:10:13 -08:00
parent a1f4738a67
commit f041bc7063
3 changed files with 70 additions and 45 deletions
+9 -8
View File
@@ -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"