Skip to content

Commit

Permalink
Xeno PVTs (#4125)
Browse files Browse the repository at this point in the history
# About the pull request

Xenos with under 10 hours total of xeno playtime will have the "young"
prefix.

"Young Queen" renamed to "Growing Queen"

# Explain why it's good for the game

Identifying if someone is brand new is important for players to be able
to assist others.


# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog

:cl: Morrow
add: Xenos with less than 10 hours on xeno now have the "Young" prefix
add: Young Queen has been renamed to Growing Queen
/:cl:
  • Loading branch information
morrowwolf authored Aug 8, 2023
1 parent 680872d commit 5702a4c
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 15 deletions.
11 changes: 6 additions & 5 deletions code/__DEFINES/job.dm
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,12 @@ var/global/list/job_command_roles = JOB_COMMAND_ROLES_LIST
#define JOB_PLAYTIME_TIER_4 (175 HOURS)

#define XENO_NO_AGE -1
#define XENO_NORMAL 0
#define XENO_MATURE 1
#define XENO_ELDER 2
#define XENO_ANCIENT 3
#define XENO_PRIME 4
#define XENO_YOUNG 0
#define XENO_NORMAL 1
#define XENO_MATURE 2
#define XENO_ELDER 3
#define XENO_ANCIENT 4
#define XENO_PRIME 5

/// For monthly time tracking
#define JOB_OBSERVER "Observer"
Expand Down
8 changes: 4 additions & 4 deletions code/modules/asset_cache/asset_list_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@

/datum/asset/spritesheet/playtime_rank/register()
var/icon_file = 'icons/mob/hud/hud.dmi'
var/tier1_state = "hudxenoupgrade1"
var/tier2_state = "hudxenoupgrade2"
var/tier3_state = "hudxenoupgrade3"
var/tier4_state = "hudxenoupgrade4"
var/tier1_state = "hudxenoupgrade2"
var/tier2_state = "hudxenoupgrade3"
var/tier3_state = "hudxenoupgrade4"
var/tier4_state = "hudxenoupgrade5"

var/icon/tier1_icon = icon(icon_file, tier1_state, SOUTH)
var/icon/tier2_icon = icon(icon_file, tier2_state, SOUTH)
Expand Down
6 changes: 6 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/XenoUpgrade.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
return

age = XENO_NORMAL
var/hours_as_xeno = client.get_total_xeno_playtime()
var/hours_as_caste = get_job_playtime(client, caste.caste_type)

switch(hours_as_caste)
Expand All @@ -15,11 +16,16 @@
if(JOB_PLAYTIME_TIER_4 to INFINITY)
age = XENO_PRIME

if(hours_as_xeno < JOB_PLAYTIME_TIER_1)
age = XENO_YOUNG

// For people who wish to remain anonymous
if(!client.prefs.playtime_perks)
age = XENO_NORMAL

switch(age)
if(XENO_YOUNG)
age_prefix = "Young "
if(XENO_NORMAL)
age_prefix = ""
if(XENO_MATURE)
Expand Down
19 changes: 13 additions & 6 deletions code/modules/mob/living/carbon/xenomorph/castes/Queen.dm
Original file line number Diff line number Diff line change
Expand Up @@ -413,17 +413,24 @@
if(queen_aged)
age_xeno()
switch(age)
if(XENO_NORMAL) name = "[name_prefix]Queen" //Young
if(XENO_MATURE) name = "[name_prefix]Elder Queen" //Mature
if(XENO_ELDER) name = "[name_prefix]Elder Empress" //Elite
if(XENO_ANCIENT) name = "[name_prefix]Ancient Empress" //Ancient
if(XENO_PRIME) name = "[name_prefix]Prime Empress" //Primordial
if(XENO_YOUNG)
name = "[name_prefix]Young Queen" //Young
if(XENO_NORMAL)
name = "[name_prefix]Queen" //Regular
if(XENO_MATURE)
name = "[name_prefix]Elder Queen" //Mature
if(XENO_ELDER)
name = "[name_prefix]Elder Empress" //Elite
if(XENO_ANCIENT)
name = "[name_prefix]Ancient Empress" //Ancient
if(XENO_PRIME)
name = "[name_prefix]Prime Empress" //Primordial
else
age = XENO_NORMAL
if(client)
hud_update()

name = "[name_prefix]Young Queen"
name = "[name_prefix]Growing Queen"

var/name_client_prefix = ""
var/name_client_postfix = ""
Expand Down
Binary file modified icons/mob/hud/hud.dmi
Binary file not shown.

0 comments on commit 5702a4c

Please sign in to comment.