mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user