Skip to content

Commit

Permalink
evolution changes
Browse files Browse the repository at this point in the history
  • Loading branch information
InsaneRed committed Dec 11, 2023
1 parent a8ece20 commit 4681245
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions code/modules/mob/living/carbon/xenomorph/Evolution.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
castes_available -= caste

if(!length(castes_available))
to_chat(src, SPAN_WARNING("The Hive is not capable of supporting any castes you can evolve to yet."))
to_chat(src, SPAN_WARNING("The Hive is not capable of supporting any castes we can evolve to yet."))
return
var/castepick
if((client.prefs && client.prefs.no_radials_preference) || !hive.evolution_menu_images)
castepick = tgui_input_list(usr, "You are growing into a beautiful alien! It is time to choose a caste.", "Evolve", castes_available, theme="hive_status")
castepick = tgui_input_list(usr, "We are growing into a beautiful alien! It is time to choose a caste.", "Evolve", castes_available, theme="hive_status")
else
var/list/fancy_caste_list = list()
for(var/caste in castes_available)
Expand All @@ -47,28 +47,28 @@
return

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."))
to_chat(src, SPAN_WARNING("The Hive is shaken by the death of the last Queen. We can't find the strength to evolve."))
return

if(castepick == XENO_CASTE_QUEEN) //Special case for dealing with queenae
if(!hardcore)
if(SSticker.mode && hive.xeno_queen_timer > world.time)
to_chat(src, SPAN_WARNING("You must wait about [DisplayTimeText(hive.xeno_queen_timer - world.time, 1)] for the hive to recover from the previous Queen's death."))
to_chat(src, SPAN_WARNING("We must wait about [DisplayTimeText(hive.xeno_queen_timer - world.time, 1)] for the hive to recover from the previous Queen's death."))
return

if(plasma_stored >= 500)
if(hive.living_xeno_queen)
to_chat(src, SPAN_WARNING("There already is a living Queen."))
return
else
to_chat(src, SPAN_WARNING("You require more plasma! Currently at: [plasma_stored] / 500."))
to_chat(src, SPAN_WARNING("We require more plasma! Currently at: [plasma_stored] / 500."))
return
else
to_chat(src, SPAN_WARNING("Nuh-uhh."))
return
if(evolution_threshold && castepick != XENO_CASTE_QUEEN) //Does the caste have an evolution timer? Then check it
if(evolution_stored < evolution_threshold)
to_chat(src, SPAN_WARNING("You must wait before evolving. Currently at: [evolution_stored] / [evolution_threshold]."))
to_chat(src, SPAN_WARNING("We must wait before evolving. Currently at: [evolution_stored] / [evolution_threshold]."))
return

// Used for restricting benos to evolve to drone/queen when they're the only potential queen
Expand Down Expand Up @@ -97,16 +97,16 @@

if(!can_evolve(castepick, potential_queens))
return
to_chat(src, SPAN_XENONOTICE("It looks like the hive can support your evolution to [SPAN_BOLD(castepick)]!"))
to_chat(src, SPAN_XENONOTICE("It looks like the hive can support our evolution to [SPAN_BOLD(castepick)]!"))

visible_message(SPAN_XENONOTICE("\The [src] begins to twist and contort."), \
SPAN_XENONOTICE("You begin to twist and contort."))
SPAN_XENONOTICE("We begin to twist and contort."))
xeno_jitter(25)
evolving = TRUE
var/level_to_switch_to = get_vision_level()

if(!do_after(src, 2.5 SECONDS, INTERRUPT_INCAPACITATED, BUSY_ICON_HOSTILE)) // Can evolve while moving
to_chat(src, SPAN_WARNING("You quiver, but nothing happens. Hold still while evolving."))
to_chat(src, SPAN_WARNING("We quiver, but nothing happens. Hold still while evolving."))
evolving = FALSE
return

Expand All @@ -122,7 +122,7 @@
to_chat(src, SPAN_WARNING("There already is a Queen."))
return
if(!hive.allow_queen_evolve)
to_chat(src, SPAN_WARNING("You can't find the strength to evolve into a Queen"))
to_chat(src, SPAN_WARNING("We can't find the strength to evolve into a Queen"))
return
else if(!can_evolve(castepick, potential_queens))
return
Expand Down Expand Up @@ -176,7 +176,7 @@
built_structures = null

new_xeno.visible_message(SPAN_XENODANGER("A [new_xeno.caste.caste_type] emerges from the husk of \the [src]."), \
SPAN_XENODANGER("You emerge in a greater form from the husk of your old body. For the hive!"))
SPAN_XENODANGER("We emerge in a greater form from the husk of our old body. For the hive!"))

if(hive.living_xeno_queen && hive.living_xeno_queen.observed_xeno == src)
hive.living_xeno_queen.overwatch(new_xeno)
Expand All @@ -202,42 +202,42 @@
return FALSE

if(!isturf(loc))
to_chat(src, SPAN_WARNING("You can't evolve here."))
to_chat(src, SPAN_WARNING("We can't evolve here."))
return FALSE

if(hardcore)
to_chat(src, SPAN_WARNING("Nuh-uh."))
return FALSE

if(lock_evolve)
to_chat(src, SPAN_WARNING("You are banished and cannot reach the hivemind."))
to_chat(src, SPAN_WARNING("We are banished and cannot reach the hivemind."))
return FALSE

if(jobban_isbanned(src, JOB_XENOMORPH))//~who so genius to do this is?
to_chat(src, SPAN_WARNING("You are jobbanned from aliens and cannot evolve. How did you even become an alien?"))
return FALSE

if(handcuffed || legcuffed)
to_chat(src, SPAN_WARNING("The restraints are too restricting to allow you to evolve."))
to_chat(src, SPAN_WARNING("The restraints are too restricting to allow us to evolve."))
return FALSE

if(isnull(caste.evolves_to))
to_chat(src, SPAN_WARNING("You are already the apex of form and function. Go forth and spread the hive!"))
to_chat(src, SPAN_WARNING("We are already the apex of form and function. Go forth and spread the hive!"))
return FALSE

if(health < maxHealth)
to_chat(src, SPAN_WARNING("You must be at full health to evolve."))
to_chat(src, SPAN_WARNING("We must be at full health to evolve."))
return FALSE

if(agility || fortify || crest_defense)
to_chat(src, SPAN_WARNING("You cannot evolve while in this stance."))
to_chat(src, SPAN_WARNING("We cannot evolve while in this stance."))
return FALSE

if(world.time < (SSticker.mode.round_time_lobby + XENO_ROUNDSTART_PROGRESS_TIME_2))
if(caste_type == XENO_CASTE_LARVA || caste_type == XENO_CASTE_PREDALIEN_LARVA)
var/turf/evoturf = get_turf(src)
if(!locate(/obj/effect/alien/weeds) in evoturf)
to_chat(src, SPAN_WARNING("The hive hasn't developed enough yet for you to evolve off weeds!"))
to_chat(src, SPAN_WARNING("The hive hasn't developed enough yet for us to evolve off weeds!"))
return FALSE

return TRUE
Expand All @@ -252,23 +252,23 @@
return

if(is_ventcrawling)
to_chat(src, SPAN_XENOWARNING("You can't deevolve here."))
to_chat(src, SPAN_XENOWARNING("We can't deevolve here."))
return

if(!isturf(loc))
to_chat(src, SPAN_XENOWARNING("You can't deevolve here."))
to_chat(src, SPAN_XENOWARNING("We can't deevolve here."))
return

if(health < maxHealth)
to_chat(src, SPAN_XENOWARNING("You are too weak to deevolve, regain your health first."))
to_chat(src, SPAN_XENOWARNING("We are too weak to deevolve, we must regain our health first."))
return

if(length(caste.deevolves_to) < 1)
to_chat(src, SPAN_XENOWARNING("You can't deevolve any further."))
to_chat(src, SPAN_XENOWARNING("We can't deevolve any further."))
return

if(lock_evolve)
to_chat(src, SPAN_WARNING("You are banished and cannot reach the hivemind."))
to_chat(src, SPAN_WARNING("We are banished and cannot reach the hivemind."))
return FALSE


Expand Down Expand Up @@ -299,7 +299,7 @@
return

if(lock_evolve)
to_chat(src, SPAN_WARNING("You are banished and cannot reach the hivemind."))
to_chat(src, SPAN_WARNING("We are banished and cannot reach the hivemind."))
return FALSE

var/xeno_type
Expand Down Expand Up @@ -352,7 +352,7 @@
if(new_xeno.client)
new_xeno.set_lighting_alpha(level_to_switch_to)
new_xeno.visible_message(SPAN_XENODANGER("A [new_xeno.caste.caste_type] emerges from the husk of \the [src]."), \
SPAN_XENODANGER("You regress into your previous form."))
SPAN_XENODANGER("We regress into our previous form."))

if(GLOB.round_statistics && !new_xeno.statistic_exempt)
GLOB.round_statistics.track_new_participant(faction, -1) //so an evolved xeno doesn't count as two.
Expand Down Expand Up @@ -396,7 +396,7 @@
to_chat(src, SPAN_WARNING("The hive cannot support another Tier 3, wait for either more aliens to be born or someone to die."))
return FALSE
else if(hive.allow_queen_evolve && !hive.living_xeno_queen && potential_queens == 1 && islarva(src) && castepick != XENO_CASTE_DRONE)
to_chat(src, SPAN_XENONOTICE("The hive currently has no sister able to become Queen! The survival of the hive requires you to be a Drone!"))
to_chat(src, SPAN_XENONOTICE("The hive currently has no sister able to become Queen! The survival of the hive requires us to be a Drone!"))
return FALSE

return TRUE

0 comments on commit 4681245

Please sign in to comment.