Skip to content

Commit

Permalink
new check
Browse files Browse the repository at this point in the history
  • Loading branch information
ihatethisengine committed Jul 25, 2023
1 parent 918491e commit 3f1b338
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 0 additions & 2 deletions code/game/gamemodes/colonialmarines/colonialmarines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@

if(!evolution_ovipositor_threshold && world.time >= SSticker.round_start_time + round_time_evolution_ovipositor)
for(var/hivenumber in GLOB.hive_datum)
if(hivenumber == XENO_HIVE_RENEGADE)
continue //renegades can keep evolving w/o ovipositor
hive = GLOB.hive_datum[hivenumber]
hive.evolution_without_ovipositor = FALSE
if(hive.living_xeno_queen && !hive.living_xeno_queen.ovipositor)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/xenomorph/Evolution.dm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
if(!evolve_checks())
return

if((!hive.living_xeno_queen) && castepick != XENO_CASTE_QUEEN && !islarva(src) && !hive.allow_no_queen_actions)
if((!hive.living_xeno_queen) && castepick != XENO_CASTE_QUEEN && !islarva(src) && !hive.allow_no_queen_evo)
to_chat(src, SPAN_WARNING("The Hive is shaken by the death of the last Queen. You can't find the strength to evolve."))
return

Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/xenomorph/XenoProcs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

if(caste && caste.evolution_allowed)
evolve_progress = "[min(stored_evolution, evolution_threshold)]/[evolution_threshold]"
if(hive && !hive.allow_no_queen_actions && !caste?.evolve_without_queen)
if(hive && !hive.allow_no_queen_evo && !caste?.evolve_without_queen)
if(!hive.living_xeno_queen)
evolve_progress += " (NO QUEEN)"
else if(!(hive.living_xeno_queen.ovipositor || hive.evolution_without_ovipositor))
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/xenomorph/life.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
var/progress_amount = 1
if(SSxevolution)
progress_amount = SSxevolution.get_evolution_boost_power(hive.hivenumber)
var/ovipositor_check = (hive.allow_no_queen_actions || hive.evolution_without_ovipositor || (hive.living_xeno_queen && hive.living_xeno_queen.ovipositor))
var/ovipositor_check = (hive.allow_no_queen_evo || hive.evolution_without_ovipositor || (hive.living_xeno_queen && hive.living_xeno_queen.ovipositor))
if(caste && caste.evolution_allowed && (ovipositor_check || caste?.evolve_without_queen))
if(evolution_stored >= evolution_threshold)
if(!got_evolution_message)
Expand Down
6 changes: 6 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/xeno_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@
var/evolution_bonus = 0

var/allow_no_queen_actions = FALSE
var/allow_no_queen_evo = FALSE
var/evolution_without_ovipositor = TRUE //Temporary for the roundstart.
/// Set to false if you want to prevent evolutions into Queens
var/allow_queen_evolve = TRUE
Expand Down Expand Up @@ -1183,6 +1184,7 @@
destruction_allowed = XENO_NOBODY
dynamic_evolution = FALSE
allow_no_queen_actions = TRUE
allow_no_queen_evo = TRUE
allow_queen_evolve = FALSE
ignore_slots = TRUE
latejoin_burrowed = FALSE
Expand All @@ -1197,6 +1199,7 @@

dynamic_evolution = FALSE
allow_no_queen_actions = TRUE
allow_no_queen_evo = TRUE
allow_queen_evolve = FALSE
ignore_slots = TRUE
latejoin_burrowed = FALSE
Expand All @@ -1214,6 +1217,7 @@

dynamic_evolution = FALSE
allow_no_queen_actions = TRUE
allow_no_queen_evo = TRUE
allow_queen_evolve = FALSE
ignore_slots = TRUE
latejoin_burrowed = FALSE
Expand Down Expand Up @@ -1243,6 +1247,7 @@

dynamic_evolution = FALSE
allow_no_queen_actions = TRUE
allow_no_queen_evo = TRUE
allow_queen_evolve = FALSE
ignore_slots = TRUE
latejoin_burrowed = FALSE
Expand Down Expand Up @@ -1308,6 +1313,7 @@

dynamic_evolution = FALSE
allow_queen_evolve = FALSE
allow_no_queen_evo = TRUE
latejoin_burrowed = FALSE

/datum/hive_status/corrupted/renegade/New()
Expand Down

0 comments on commit 3f1b338

Please sign in to comment.