Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Sep 9, 2023
1 parent c2d33de commit 4ec248c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions code/modules/mob/living/carbon/xenomorph/Evolution.dm
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,10 @@
continue
var/datum/caste_datum/current_caste = caste_path
switch(initial(current_caste.tier))
if(2) used_tier_2_slots -= min(slots_used, slots_free)
if(3) used_tier_3_slots -= min(slots_used, slots_free)
if(2)
used_tier_2_slots -= min(slots_used, slots_free)
if(3)
used_tier_3_slots -= min(slots_used, slots_free)

var/burrowed_factor = min(hive.stored_larva, sqrt(4*hive.stored_larva))
var/totalXenos = round(burrowed_factor)
Expand Down
12 changes: 8 additions & 4 deletions code/modules/mob/living/carbon/xenomorph/xeno_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -799,14 +799,18 @@
if(slots_used)
// Don't count any free slots in use
switch(initial(current_caste.tier))
if(2) used_tier_2_slots -= min(slots_used, slots_free)
if(3) used_tier_3_slots -= min(slots_used, slots_free)
if(2)
used_tier_2_slots -= min(slots_used, slots_free)
if(3)
used_tier_3_slots -= min(slots_used, slots_free)
if(slots_free <= slots_used)
continue
// Display any free slots available
switch(initial(current_caste.tier))
if(2) slots[TIER_2][GUARANTEED_SLOTS][initial(current_caste.caste_type)] = slots_free - slots_used
if(3) slots[TIER_3][GUARANTEED_SLOTS][initial(current_caste.caste_type)] = slots_free - slots_used
if(2)
slots[TIER_2][GUARANTEED_SLOTS][initial(current_caste.caste_type)] = slots_free - slots_used
if(3)
slots[TIER_3][GUARANTEED_SLOTS][initial(current_caste.caste_type)] = slots_free - slots_used

var/burrowed_factor = min(stored_larva, sqrt(4*stored_larva))
var/effective_total = round(burrowed_factor)
Expand Down

0 comments on commit 4ec248c

Please sign in to comment.