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:
parent
da7344d749
commit
f981c23379
5 changed files with 189 additions and 28 deletions
21
media/lua/shared/DogFoodIsntThatBad.lua
Normal file
21
media/lua/shared/DogFoodIsntThatBad.lua
Normal 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)
|
||||
|
|
@ -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.",
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue