Skip to content

Commit

Permalink
Update Warrior.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
usnpeepoo authored Oct 7, 2023
1 parent c8d3752 commit b5cb1d3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/castes/Warrior.dm
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,29 @@
/datum/behavior_delegate/warrior_base
name = "Base Warrior Behavior Delegate"

var/slash_charge_cdr = 0.20 SECONDS // Amount to reduce charge cooldown by per slash
var/lifesteal_percent = 7
var/max_lifesteal = 9
var/lifesteal_range = 3 // Marines within 3 tiles of range will give the warrior extra health
var/lifesteal_lock_duration = 20 // This will remove the glow effect on warrior after 2 seconds
var/color = "#6c6f24"
var/emote_cooldown = 0

/datum/behavior_delegate/warrior_base/melee_attack_additional_effects_self()
..()

var/datum/action/xeno_action/activable/lunge/cAction1 = get_xeno_action_by_type(bound_xeno, /datum/action/xeno_action/activable/lunge)
if (!cAction1.action_cooldown_check())
cAction1.reduce_cooldown(slash_charge_cdr)

var/datum/action/xeno_action/activable/fling/cAction2 = get_xeno_action_by_type(bound_xeno, /datum/action/xeno_action/activable/fling)
if (!cAction2.action_cooldown_check())
cAction2.reduce_cooldown(slash_charge_cdr)

var/datum/action/xeno_action/activable/warrior_punch/cAction3 = get_xeno_action_by_type(bound_xeno, /datum/action/xeno_action/activable/warrior_punch)
if (!cAction3.action_cooldown_check())
cAction3.reduce_cooldown(slash_charge_cdr)

/datum/behavior_delegate/warrior_base/melee_attack_additional_effects_target(mob/living/carbon/A)
..()

Expand Down

0 comments on commit b5cb1d3

Please sign in to comment.