Resource raw data converted to code
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
namespace AOW4.Data;
|
||||||
|
|
||||||
|
public class ResourceNode
|
||||||
|
{
|
||||||
|
public string Name { get; set; } = string.Empty;
|
||||||
|
public string? Description { get; set; }
|
||||||
|
public int? IncreaseFood { get; set; }
|
||||||
|
public int? IncreaseProduction { get; set; }
|
||||||
|
public int? IncreaseGold { get; set; }
|
||||||
|
public int? IncreaseMana { get; set; }
|
||||||
|
public int? IncreaseKnowledge { get; set; }
|
||||||
|
public bool ForceEnableFarm { get; set; }
|
||||||
|
public bool ForceEnableMine { get; set; }
|
||||||
|
public bool ForceEnableQuarry { get; set; }
|
||||||
|
public bool ForceEnableConduit { get; set; }
|
||||||
|
public bool ForceEnableResearchPost { get; set; }
|
||||||
|
public bool ForceEnableForester { get; set; }
|
||||||
|
}
|
||||||
@@ -0,0 +1,81 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace AOW4.Data;
|
||||||
|
|
||||||
|
public static class ResourceNodesData
|
||||||
|
{
|
||||||
|
public static readonly IReadOnlyList<ResourceNode> RawData = new List<ResourceNode>
|
||||||
|
{
|
||||||
|
new ResourceNode
|
||||||
|
{
|
||||||
|
Name = "Pastures",
|
||||||
|
Description = "Roaming herds on lush fields.",
|
||||||
|
IncreaseFood = 10,
|
||||||
|
ForceEnableFarm = true
|
||||||
|
},
|
||||||
|
new ResourceNode
|
||||||
|
{
|
||||||
|
Name = "Oasis",
|
||||||
|
Description = "A lush oasis full of nutritious food.",
|
||||||
|
IncreaseFood = 10
|
||||||
|
},
|
||||||
|
new ResourceNode
|
||||||
|
{
|
||||||
|
Name = "Iron Deposit",
|
||||||
|
Description = "A rich vein full of ore.",
|
||||||
|
IncreaseProduction = 10,
|
||||||
|
ForceEnableMine = true,
|
||||||
|
ForceEnableQuarry = true
|
||||||
|
},
|
||||||
|
new ResourceNode
|
||||||
|
{
|
||||||
|
Name = "Gold Vein",
|
||||||
|
Description = "A large vein of valuable gold.",
|
||||||
|
IncreaseGold = 10,
|
||||||
|
ForceEnableMine = true
|
||||||
|
},
|
||||||
|
new ResourceNode
|
||||||
|
{
|
||||||
|
Name = "Mana Node",
|
||||||
|
Description = "Magical currents converge at this location.",
|
||||||
|
IncreaseMana = 10,
|
||||||
|
ForceEnableConduit = true,
|
||||||
|
ForceEnableResearchPost = true
|
||||||
|
},
|
||||||
|
new ResourceNode
|
||||||
|
{
|
||||||
|
Name = "Fishing Ground",
|
||||||
|
Description = "A plentiful source of fish.",
|
||||||
|
IncreaseFood = 15
|
||||||
|
},
|
||||||
|
new ResourceNode
|
||||||
|
{
|
||||||
|
Name = "Pearl Reef",
|
||||||
|
Description = "A bloom of valuable pearls.",
|
||||||
|
IncreaseGold = 7,
|
||||||
|
IncreaseMana = 7,
|
||||||
|
ForceEnableMine = true,
|
||||||
|
ForceEnableConduit = true
|
||||||
|
},
|
||||||
|
new ResourceNode
|
||||||
|
{
|
||||||
|
Name = "Chitinous Growths",
|
||||||
|
Description = "These grotesque growths deposit valuable liquid and ore at unnatural speed.",
|
||||||
|
IncreaseGold = 30
|
||||||
|
},
|
||||||
|
new ResourceNode
|
||||||
|
{
|
||||||
|
Name = "Monoliths",
|
||||||
|
Description = "There is writing in an unknown language on these obsidian giants.",
|
||||||
|
IncreaseKnowledge = 30
|
||||||
|
},
|
||||||
|
new ResourceNode
|
||||||
|
{
|
||||||
|
Name = "Blossom Orchard",
|
||||||
|
Description = "Eternally blooming trees offering bounty of fruit and wood.",
|
||||||
|
IncreaseFood = 5,
|
||||||
|
IncreaseProduction = 5,
|
||||||
|
ForceEnableForester = true
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user