mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Fix all types of damage to the head causing brain damage (#82763)
## About The Pull Request 5 months ago when I separated this stuff out to its own proc I forgot a damagetype check. ## Changelog 🆑 Melbert fix: Only brute damage causes brain damage when applied to the forehead, rather than all damage types /🆑
This commit is contained in:
@@ -387,7 +387,7 @@
|
||||
glasses.add_mob_blood(src)
|
||||
update_worn_glasses()
|
||||
|
||||
if(!attacking_item.get_sharpness() && !HAS_TRAIT(src, TRAIT_HEAD_INJURY_BLOCKED))
|
||||
if(!attacking_item.get_sharpness() && !HAS_TRAIT(src, TRAIT_HEAD_INJURY_BLOCKED) && attacking_item.damtype == BRUTE)
|
||||
if(prob(damage_done))
|
||||
adjustOrganLoss(ORGAN_SLOT_BRAIN, 20)
|
||||
if(stat == CONSCIOUS)
|
||||
@@ -417,7 +417,7 @@
|
||||
w_uniform.add_mob_blood(src)
|
||||
update_worn_undersuit()
|
||||
|
||||
if(stat == CONSCIOUS && !attacking_item.get_sharpness() && !HAS_TRAIT(src, TRAIT_BRAWLING_KNOCKDOWN_BLOCKED))
|
||||
if(stat == CONSCIOUS && !attacking_item.get_sharpness() && !HAS_TRAIT(src, TRAIT_BRAWLING_KNOCKDOWN_BLOCKED) && attacking_item.damtype == BRUTE)
|
||||
if(prob(damage_done))
|
||||
visible_message(
|
||||
span_danger("[src] is knocked down!"),
|
||||
|
||||
Reference in New Issue
Block a user