[0.6.35] singular/plural parser picks singular variant when pc has multiple cocks

Neu

Member
Jul 27, 2021
14
8
When choosing "Breed Them" on the Cat Harem, the text should be "throb" if pc has multiple cocks, but it says "throbs" instead:
1710041628862.png
In the function MeowBreed, the code is:
Code:
Your [pc.cocks] [p|throb|throbs] hotly, fixing
The parser looks correct, but the singular variant was picked for some reason when my character had multiple cocks.
I thought it was weird, so I tried testing it dev console:
Code:
output("[pc.cocks] [p|throb|throbs]")
It outputs the correct text.
I then thought maybe the nesting has something to do with it, but the code below also outputs the correct text:
Code:
output("[pc.hasCocks|[pc.cocks] [p|throb|throbs]]")
The original text is wrapped in var0, so I tried testing that.
I was able to replicate the problem with this code. var0 seems to mess with the singular/plural parser:
Code:
output("[var0|[pc.cocks] [p|throb|throbs]]", [function(){return !0}])
 

Neu

Member
Jul 27, 2021
14
8
It's not completely fixed in v0.7.3.
The first time I run output("[var0|[pc.cocks] [p|throb|throbs]]", [function(){return !0}]), the wrong variant is selected. If I run it again, the correct one is selected.
Running the code again shows the correct text until I do something different such as moving to a different tile, opening the inventory, talking to an npc, etc.

Here's my save:
 

Attachments

  • CoC2_Gelt_54.coc2
    22.1 KB · Views: 2