Skip to content

Commit

Permalink
bam
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Nov 2, 2023
1 parent 3d052dd commit b43550b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 6 additions & 4 deletions code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1394,11 +1394,11 @@ var/const/MAX_SAVE_SLOTS = 10

var/prefix_length = length(new_xeno_prefix)

if(prefix_length>3)
if(prefix_length > 3)
to_chat(user, SPAN_WARNING(FONT_SIZE_BIG("Invalid Xeno Prefix. Your Prefix can only be up to 3 letters long.")))
return

if(prefix_length==3)
if(prefix_length == 3)
if(xeno_postfix)
to_chat(user, SPAN_WARNING(FONT_SIZE_BIG("You can't use three letter prefix with any postfix.")))
return
Expand All @@ -1424,7 +1424,7 @@ var/const/MAX_SAVE_SLOTS = 10
xeno_postfix = ""
return

if(length(xeno_prefix)==3)
if(length(xeno_prefix) == 3)
to_chat(user, SPAN_WARNING(FONT_SIZE_BIG("You can't use three letter prefix with any postfix.")))
return

Expand All @@ -1441,10 +1441,10 @@ var/const/MAX_SAVE_SLOTS = 10
var/first_char = TRUE
for(var/i=1, i<=length(new_xeno_postfix), i++)
var/ascii_char = text2ascii(new_xeno_postfix,i)

switch(ascii_char)
// A .. Z
if(65 to 90) //Uppercase Letters will work on first char

if(length(xeno_prefix)!=2)
to_chat(user, SPAN_WARNING(FONT_SIZE_BIG("You can't use three letter prefix with any postfix.")))
return
Expand All @@ -1453,8 +1453,10 @@ var/const/MAX_SAVE_SLOTS = 10
if(48 to 57) //Numbers will work if not the first char
if(first_char)
all_ok = FALSE

else
all_ok = FALSE //everything else - won't

first_char = FALSE
if(all_ok)
xeno_postfix = new_xeno_postfix
Expand Down
1 change: 0 additions & 1 deletion code/modules/mob/living/carbon/xenomorph/XenoUpgrade.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
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 Down

0 comments on commit b43550b

Please sign in to comment.