mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 07:33:34 +01:00
Constify minimum and maximum player ages.
This commit is contained in:
@@ -634,11 +634,11 @@ datum/preferences
|
||||
if(link_tags["age"])
|
||||
switch(link_tags["age"])
|
||||
if("input")
|
||||
var/new_age = input(user, "Please select type in age: 20-65", "Character Generation") as num
|
||||
var/new_age = input(user, "Please enter an age ([minimum_age]-[maximum_age])", "Character Generation") as num
|
||||
if(new_age)
|
||||
age = max(min(round(text2num(new_age)), 65), 20)
|
||||
age = max(min(round(text2num(new_age)), maximum_age), minimum_age)
|
||||
if("random")
|
||||
age = rand (20, 45)
|
||||
age = rand (minimum_age, maximum_age)
|
||||
|
||||
if(link_tags["b_type"])
|
||||
switch(link_tags["b_type"])
|
||||
@@ -1012,4 +1012,4 @@ datum/preferences
|
||||
character.disabilities = disabilities
|
||||
|
||||
#undef UI_OLD
|
||||
#undef UI_NEW
|
||||
#undef UI_NEW
|
||||
|
||||
@@ -15,7 +15,7 @@ datum/preferences
|
||||
underwear = 1
|
||||
backbag = 2
|
||||
b_type = pick("A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-")
|
||||
age = rand(20,65)
|
||||
age = rand(minimum_age, maximum_age)
|
||||
copy_to(H,1)
|
||||
|
||||
proc/randomize_name()
|
||||
@@ -263,4 +263,4 @@ datum/preferences
|
||||
if(H.name == f_style)
|
||||
facial_hair_style = H
|
||||
else
|
||||
del(H)
|
||||
del(H)
|
||||
|
||||
Reference in New Issue
Block a user