Add "Refined Palate" trait

- Increase or decrease happiness for a variety of foods and food
categories based on subjective quality when the Refined Palate trait is
active.
- Move the trait definition to the shared code.
- Add icons for the "Refined Palate" and "Not a Picky Eater" traits.
This commit is contained in:
Nettika 2023-04-30 12:29:40 -07:00
parent da7344d749
commit f981c23379
5 changed files with 189 additions and 28 deletions

View file

@ -0,0 +1,21 @@
local function initTraits()
TraitFactory.addTrait(
"NotAPickyEater",
getText("UI_trait_NotAPickyEater"),
1,
getText("UI_trait_NotAPickyEaterdesc"),
false,
false
)
TraitFactory.addTrait(
"RefinedPalate",
getText("UI_trait_RefinedPalate"),
-2,
getText("UI_trait_RefinedPalatedesc"),
false,
false
)
TraitFactory.setMutualExclusive("NotAPickyEater", "RefinedPalate")
end
Events.OnGameBoot.Add(initTraits)

View file

@ -1,4 +1,6 @@
UI_EN = {
UI_trait_NotAPickyEater = "Not a Picky Eater",
UI_trait_NotAPickyEater_description = "No foods make you unhappy or bored.",
UI_trait_NotAPickyEaterdesc = "Foods never increases unhappiness or boredom.",
UI_trait_RefinedPalate = "Refined Palate",
UI_trait_RefinedPalatedesc = "Many additional low quality foods increase unhappiness and boredom.",
}