The berserk ability cannot be used in pressurised areas (#2428)

## About The Pull Request
Does as the title says, makes it so that the berserk ability from the
berserker armour and the dragonslayer armour cannot be used while in
pressurised areas (such as on-station). This does NOT change any stats
of the armours.
## Why It's Good For The Game
I'll admit I went a bit too far with the dragonslayer sword nerf, so
this should hopefully be a better nerf for the dragonslayer and
berserker armour set that removes the potential for absurd combos of
this ability plus whatever weapon hitting absurdly fast on-station.
## Proof Of Testing
It compiled, ran, and was fully tested to work.
## Changelog
🆑
balance: the berserk ability can no longer be used in pressurised areas,
such as on-station
/🆑

Co-authored-by: LT3 <83487515+lessthnthree@users.noreply.github.com>
This commit is contained in:
Alexis
2024-11-17 23:17:04 -05:00
committed by GitHub
parent 3a5264d5bd
commit ae5eb0e05a
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
/datum/action/item_action/berserk_mode/IsAvailable(feedback = FALSE)
. = ..()
if(!.)
return FALSE
if(!lavaland_equipment_pressure_check(get_turf(owner)))
if(feedback)
to_chat(owner, span_warning("You can't use this in a pressurised environment!"))
return FALSE
return TRUE

View File

@@ -8895,6 +8895,7 @@
#include "modular_zubbers\code\modules\autolathe_components_adv\advpartdisks.dm"
#include "modular_zubbers\code\modules\automapper\code\area_spawn_entries.dm"
#include "modular_zubbers\code\modules\automapper\code\overrides\area_spawn_subsystem.dm"
#include "modular_zubbers\code\modules\beserk_ability_onstation\beserk.dm"
#include "modular_zubbers\code\modules\bitrunning\disks.dm"
#include "modular_zubbers\code\modules\blooper\atoms_movable.dm"
#include "modular_zubbers\code\modules\blooper\bark.dm"