-
Notifications
You must be signed in to change notification settings - Fork 565
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
Refactors a few vars on /mob/living/carbon/xenomorph #4899
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
90555f7
moves carrier vars to carrier
Birdtalon f408a60
deletes unused defender vars
Birdtalon 896d51a
replaces carrier var with holder to avoid ambiguity
Birdtalon c5277cb
removes var/steelcrest
Birdtalon 6dadf97
to_chat style
Birdtalon 4d1baa0
addresses runtime exception
Birdtalon 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
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 |
---|---|---|
|
@@ -21,7 +21,8 @@ | |
if(mind in SSticker.mode.xenomorphs) | ||
to_chat(src, SPAN_DEBUG("[src] mind is in the xenomorph list. Mind key is [mind.key].")) | ||
to_chat(src, SPAN_DEBUG("Current mob is: [mind.current]. Original mob is: [mind.original].")) | ||
else to_chat(src, SPAN_DEBUG("This xenomorph is not in the xenomorph list.")) | ||
else | ||
to_chat(src, SPAN_DEBUG("This xenomorph is not in the xenomorph list.")) | ||
#endif | ||
|
||
#undef DEBUG_XENO | ||
|
@@ -280,7 +281,6 @@ | |
/// 0/FALSE - upright, 1/TRUE - all fours | ||
var/agility = FALSE | ||
var/ripping_limb = FALSE | ||
var/steelcrest = FALSE | ||
/// The world.time at which we will regurgitate our currently-vored victim | ||
var/devour_timer = 0 | ||
/// For drones/hivelords. Extends the maximum build range they have | ||
|
@@ -338,34 +338,23 @@ | |
|
||
//Burrower Vars | ||
var/used_tremor = 0 | ||
// Defender vars | ||
var/used_headbutt = 0 | ||
var/used_fortify = 0 | ||
// Burrowers | ||
var/used_burrow = 0 | ||
var/used_tunnel = 0 | ||
|
||
//Carrier vars | ||
var/threw_a_hugger = 0 | ||
var/huggers_cur = 0 | ||
var/eggs_cur = 0 | ||
var/huggers_max = 0 | ||
var/eggs_max = 0 | ||
var/laid_egg = 0 | ||
|
||
Comment on lines
-348
to
-355
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. Moved to the carrier subclass. |
||
//Taken from update_icon for all xeno's | ||
var/list/overlays_standing[X_TOTAL_LAYERS] | ||
|
||
var/atom/movable/vis_obj/xeno_wounds/wound_icon_carrier | ||
var/atom/movable/vis_obj/xeno_pack/backpack_icon_carrier | ||
var/atom/movable/vis_obj/xeno_wounds/wound_icon_holder | ||
var/atom/movable/vis_obj/xeno_pack/backpack_icon_holder | ||
|
||
/mob/living/carbon/xenomorph/Initialize(mapload, mob/living/carbon/xenomorph/oldXeno, h_number) | ||
var/area/A = get_area(src) | ||
if(A && A.statistic_exempt) | ||
statistic_exempt = TRUE | ||
|
||
wound_icon_carrier = new(null, src) | ||
vis_contents += wound_icon_carrier | ||
wound_icon_holder = new(null, src) | ||
vis_contents += wound_icon_holder | ||
|
||
if(oldXeno) | ||
set_movement_intent(oldXeno.m_intent) | ||
|
@@ -719,11 +708,11 @@ | |
|
||
built_structures = null | ||
|
||
vis_contents -= wound_icon_carrier | ||
QDEL_NULL(wound_icon_carrier) | ||
if(backpack_icon_carrier) | ||
vis_contents -= backpack_icon_carrier | ||
QDEL_NULL(backpack_icon_carrier) | ||
vis_contents -= wound_icon_holder | ||
QDEL_NULL(wound_icon_holder) | ||
if(backpack_icon_holder) | ||
vis_contents -= backpack_icon_holder | ||
QDEL_NULL(backpack_icon_holder) | ||
|
||
QDEL_NULL(iff_tag) | ||
|
||
|
@@ -946,8 +935,9 @@ | |
if(is_zoomed) | ||
zoom_out() | ||
if(iscarrier(src)) | ||
huggers_max = caste.huggers_max | ||
eggs_max = caste.eggs_max | ||
var/mob/living/carbon/xenomorph/carrier/carrier | ||
carrier.huggers_max = caste.huggers_max | ||
carrier.eggs_max = caste.eggs_max | ||
need_weeds = mutators.need_weeds | ||
|
||
|
||
|
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
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
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
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
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
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.
These are completely unused.