mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
[MIRROR] better logic for plural_s() [MDB IGNORE] (#9660)
* 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) * better logic for plural_s() Co-authored-by: Seris02 <49109742+Seris02@users.noreply.github.com>
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