better logic for plural_s() (#62776)

makes it so that plural_s() actually follows most english rules
which is good
even though the proc is never used with this it might actually become useful (i have plans)
This commit is contained in:
Seris02
2021-11-23 17:19:37 +00:00
committed by GitHub
parent 59b4ac982b
commit 5007e8fcf9
+10 -4
View File
@@ -40,13 +40,19 @@
. = "es"
/datum/proc/plural_s(pluralize)
switch(copytext_char(pluralize, -1))
if ("s")
switch(copytext_char(pluralize, -2))
if ("ss")
. = "es"
if ("x")
if ("sh")
. = "es"
if ("ch")
. = "es"
else
. = "s"
switch(copytext_char(pluralize, -1))
if("s", "x", "z")
. = "es"
else
. = "s"
//like clients, which do have gender.
/client/p_they(capitalized, temp_gender)