Skip to content

Commit

Permalink
removes unused ability
Browse files Browse the repository at this point in the history
  • Loading branch information
Birdtalon committed Nov 11, 2023
1 parent 4b26a30 commit 20d7fcb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,30 +86,6 @@
/// Duration for the cooldown of abilities affected by acid shroud
var/cooldown_duration = 30 SECONDS

/datum/action/xeno_action/onclick/dump_acid
name = "Dump Acid"
ability_name = "dump acid"
action_icon_state = "dump_acid"
plasma_cost = 10
macro_path = /datum/action/xeno_action/verb/verb_dump_acid
action_type = XENO_ACTION_ACTIVATE
ability_primacy = XENO_PRIMARY_ACTION_4
xeno_cooldown = 34 SECONDS

var/buffs_duration = 6 SECONDS
var/cooldown_duration = 30 SECONDS

var/speed_buff_amount = 0.5
var/movespeed_buff_applied = FALSE

/// List of types of actions to place on 20-second CD,if you ever want to subtype this for a strain or whatever, just change this var on the subtype
var/action_types_to_cd = list(
/datum/action/xeno_action/activable/xeno_spit/bombard,
/datum/action/xeno_action/onclick/dump_acid,
/datum/action/xeno_action/onclick/toggle_long_range/boiler,
/datum/action/xeno_action/activable/spray_acid/boiler,
)

//////////////////////////// Trapper boiler abilities

/datum/action/xeno_action/activable/boiler_trap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
spicy_gas = new /datum/effect_system/smoke_spread/xeno_weaken
else
CRASH("Globber has unknown ammo [xeno.ammo]! Oh no!")

var/datum/cause_data/cause_data = create_cause_data("acid shroud gas", owner)
spicy_gas.set_up(1, 0, get_turf(xeno), null, 6, new_cause_data = cause_data)
spicy_gas.start()
Expand All @@ -158,30 +159,6 @@
apply_cooldown()
return ..()

/datum/action/xeno_action/onclick/dump_acid/proc/remove_speed_buff()
if (!movespeed_buff_applied && !isxeno(owner))
return

var/mob/living/carbon/xenomorph/xeno = owner
xeno.speed_modifier += speed_buff_amount
xeno.recalculate_speed()
movespeed_buff_applied = FALSE
UnregisterSignal(owner, COMSIG_MOB_MOVE_OR_LOOK)

/datum/action/xeno_action/onclick/dump_acid/proc/handle_mob_move_or_look(mob/living/carbon/xenomorph/mover, actually_moving, direction, specific_direction)
SIGNAL_HANDLER

if(!actually_moving)
return

var/obj/effect/particle_effect/smoke/xeno_burn/smoke_effect = new(get_turf(mover), 1, create_cause_data("dumped acid gas", mover))
smoke_effect.time_to_live = 3
smoke_effect.spread_speed = 1000000

/datum/action/xeno_action/onclick/dump_acid/remove_from()
remove_speed_buff()
..()

/datum/action/xeno_action/onclick/shift_spits/boiler/use_ability(atom/A)
. = ..()
apply_cooldown()
Expand Down

0 comments on commit 20d7fcb

Please sign in to comment.