Switched coneflower & tulip.

This commit is contained in:
Sander Schobers 2020-05-11 00:46:26 +02:00
parent 3407a93586
commit 14454cfd5e
2 changed files with 27 additions and 27 deletions

View File

@ -32,8 +32,8 @@ type FlowerResistance struct {
Wet float32 Wet float32
} }
// NewPoppyTraits creates the traits of a anemone, a very generic flower that thrives in a moderate climate. // NewAnemoneTraits creates the traits of a anemone, a very generic flower that thrives in a moderate climate.
func NewPoppyTraits() FlowerTraits { func NewAnemoneTraits() FlowerTraits {
return FlowerTraits{ return FlowerTraits{
Spread: 0.0004, Spread: 0.0004,
Life: 0.99993, Life: 0.99993,
@ -59,6 +59,19 @@ func NewLoosestrifeTraits() FlowerTraits {
} }
} }
func NewConeflowerTraits() FlowerTraits {
return FlowerTraits{
Spread: 0.0005,
Life: 0.99993,
Resistance: FlowerResistance{
Cold: 0.7,
Hot: 0.8,
Dry: 0.8,
Wet: 0.5,
},
}
}
func NewTulipTraits() FlowerTraits { func NewTulipTraits() FlowerTraits {
return FlowerTraits{ return FlowerTraits{
Spread: 0.0005, Spread: 0.0005,
@ -67,20 +80,7 @@ func NewTulipTraits() FlowerTraits {
Cold: 0.8, Cold: 0.8,
Hot: 0.6, Hot: 0.6,
Dry: 0.5, Dry: 0.5,
Wet: 0.8, Wet: 0.9,
},
}
}
func NewConeflowerTraits() FlowerTraits {
return FlowerTraits{
Spread: 0.0005,
Life: 0.99993,
Resistance: FlowerResistance{
Cold: 0.7,
Hot: 0.8,
Dry: 0.9,
Wet: 0.5,
}, },
} }
} }

22
game.go
View File

@ -46,7 +46,7 @@ func NewGame() *Game {
IconTemplate: "flower-anemone-%s", IconTemplate: "flower-anemone-%s",
BuyPrice: 10, BuyPrice: 10,
SellPrice: 3, SellPrice: 3,
Traits: NewPoppyTraits(), Traits: NewAnemoneTraits(),
Unlocked: true, Unlocked: true,
}) })
herbarium.Add("loosestrife", FlowerDescriptor{ herbarium.Add("loosestrife", FlowerDescriptor{
@ -58,22 +58,22 @@ func NewGame() *Game {
Traits: NewLoosestrifeTraits(), Traits: NewLoosestrifeTraits(),
Unlocked: false, Unlocked: false,
}) })
herbarium.Add("tulip", FlowerDescriptor{
Name: "Tulip",
Description: "A lovely flower that prefers a bit humid and colder climates.",
IconTemplate: "flower-tulip-%s",
BuyPrice: 500,
SellPrice: 100,
Traits: NewTulipTraits(),
Unlocked: false,
})
herbarium.Add("coneflower", FlowerDescriptor{ herbarium.Add("coneflower", FlowerDescriptor{
Name: "Coneflower", Name: "Coneflower",
Description: "A beautifull flower that can withstand hotter climates.", Description: "A beautifull flower that can withstand hotter climates.",
IconTemplate: "flower-coneflower-%s", IconTemplate: "flower-coneflower-%s",
BuyPrice: 500,
SellPrice: 100,
Traits: NewConeflowerTraits(),
Unlocked: false,
})
herbarium.Add("tulip", FlowerDescriptor{
Name: "Tulip",
Description: "A lovely flower that prefers a bit humid and colder climates.",
IconTemplate: "flower-tulip-%s",
BuyPrice: 20000, BuyPrice: 20000,
SellPrice: 5000, SellPrice: 5000,
Traits: NewConeflowerTraits(), Traits: NewTulipTraits(),
Unlocked: false, Unlocked: false,
}) })
herbarium.Add("ajuga", FlowerDescriptor{ herbarium.Add("ajuga", FlowerDescriptor{