-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fire stops Xeno regen (Main - Vamp) #7135
Closed
+13
−7
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -199,6 +199,8 @@ | |
target_turfs += current_turfs | ||
telegraph_atom_list += new /obj/effect/xenomorph/xeno_telegraph/red(current_turfs, 2) | ||
|
||
var/can_heal = !(SEND_SIGNAL(xeno, COMSIG_XENO_PRE_HEAL) & COMPONENT_CANCEL_XENO_HEAL) | ||
|
||
for (var/turf/current_turfs in target_turfs) | ||
for (var/mob/living/carbon/target in current_turfs) | ||
if (target.stat == DEAD) | ||
|
@@ -214,11 +216,13 @@ | |
log_attack("[key_name(xeno)] attacked [key_name(target)] with Flurry") | ||
target.apply_armoured_damage(get_xeno_damage_slash(target, xeno.caste.melee_damage_upper), ARMOR_MELEE, BRUTE, rand_zone()) | ||
playsound(get_turf(target), 'sound/weapons/alien_claw_flesh4.ogg', 30, TRUE) | ||
xeno.flick_heal_overlay(1 SECONDS, "#00B800") | ||
xeno.gain_health(30) | ||
xeno.animation_attack_on(target) | ||
if(can_heal) | ||
xeno.flick_heal_overlay(1 SECONDS, "#00B800") | ||
xeno.gain_health(30) | ||
|
||
xeno.emote("roar") | ||
if(can_heal)//No heals = No Roar | ||
xeno.emote("roar") | ||
return ..() | ||
|
||
/datum/action/xeno_action/activable/tail_jab/use_ability(atom/targeted_atom) | ||
|
@@ -374,10 +378,11 @@ | |
xeno.animation_attack_on(target_carbon, pixel_offset = 16) | ||
target_carbon.apply_armoured_damage(60, ARMOR_MELEE, BRUTE, "head", 5) //DIE | ||
target_carbon.death(create_cause_data("headbite execution", xeno), FALSE) | ||
xeno.gain_health(150) | ||
xeno.xeno_jitter(1 SECONDS) | ||
xeno.flick_heal_overlay(3 SECONDS, "#00B800") | ||
xeno.emote("roar") | ||
if(!(SEND_SIGNAL(xeno, COMSIG_XENO_PRE_HEAL) & COMPONENT_CANCEL_XENO_HEAL)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same thing here |
||
xeno.gain_health(150) | ||
xeno.xeno_jitter(1 SECONDS) | ||
xeno.flick_heal_overlay(3 SECONDS, "#00B800") | ||
xeno.emote("roar") | ||
log_attack("[key_name(xeno)] was executed by [key_name(target_carbon)] with a headbite!") | ||
apply_cooldown() | ||
return ..() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bad signal.
Signals should only be sent from one location in code. If they need to be sent from multiple locations in code, they need to be separated into their own signal.
Consider isolating this into its own
can_heal
proc on the xenomorph type itself and calling the signal from there.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I notice this signal is sent from multiple places in code right now, but that's bad. I think you should just do this basic refactor since it'll prevent headache in the future.