Resource raw data converted to code

This commit is contained in:
2026-05-25 16:21:16 -04:00
parent 07bbf4614a
commit 322575d913
3 changed files with 99 additions and 0 deletions
+18
View File
@@ -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; }
}
+81
View File
@@ -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
}
};
}
View File