Wrap (and update loading of) resources

pull/11/head
Daniel Asher Resnick 2 years ago
parent 38a49c8327
commit 849b957a7b
  1. 231
      src/data/dark_elf/resources.json
  2. 307
      src/data/gold/resources/dwarf.json
  3. 355
      src/data/gold/resources/elf.json
  4. 871
      src/data/gold/resources/man.json
  5. 425
      src/data/gold/resources/orc.json
  6. 281
      src/data/gold/resources/roden.json
  7. 87
      src/data/gold/resources/wolf.json
  8. 117
      src/data/troll/resources.json
  9. 3
      src/lib/data/dark_elf.rb
  10. 3
      src/lib/data/gold.rb
  11. 3
      src/lib/data/troll.rb

@ -1,114 +1,117 @@
[ {
{ "stock": "elf",
"name": "Bitter Poison", "resources": [
"type": "gear", {
"rp": 10 "name": "Bitter Poison",
}, "type": "gear",
{ "rp": 10
"name": "Spiteful Poison", },
"type": "gear", {
"rp": 20 "name": "Spiteful Poison",
}, "type": "gear",
{ "rp": 20
"name": "Lock Picks", },
"type": "gear", {
"rp": 10 "name": "Lock Picks",
}, "type": "gear",
{ "rp": 10
"name": "Long Knife", },
"type": "gear", {
"rp": 5 "name": "Long Knife",
}, "type": "gear",
{ "rp": 5
"name": "Barbed Javelins", },
"type": "gear", {
"rp": 3 "name": "Barbed Javelins",
}, "type": "gear",
{ "rp": 3
"name": "Garrote", },
"type": "gear", {
"rp": 3 "name": "Garrote",
}, "type": "gear",
{ "rp": 3
"name": "Caltrops", },
"type": "gear", {
"rp": 3 "name": "Caltrops",
}, "type": "gear",
{ "rp": 3
"name": "Tools Of The Trade", },
"type": "gear", {
"rp": 9 "name": "Tools Of The Trade",
}, "type": "gear",
{ "rp": 9
"name": "Cloak Of Darkness", },
"type": "gear", {
"rp": 30 "name": "Cloak Of Darkness",
}, "type": "gear",
{ "rp": 30
"name": "Climbing Claws", },
"type": "gear", {
"rp": 5 "name": "Climbing Claws",
}, "type": "gear",
{ "rp": 5
"name": "Remote Refuge", },
"type": "property", {
"resources": [ "name": "Remote Refuge",
{ "type": "property",
"name": "Wasteland", "resources": [
"rp": 20 {
}, "name": "Wasteland",
{ "rp": 20
"name": "Isolated Manor And Moorland", },
"rp": 50 {
}, "name": "Isolated Manor And Moorland",
{ "rp": 50
"name": "Hidden Fortress", },
"rp": 100 {
}, "name": "Hidden Fortress",
{ "rp": 100
"name": "Dark Forest, Cove Or Lonely Mountain", },
"rp": 150 {
}, "name": "Dark Forest, Cove Or Lonely Mountain",
{ "rp": 150
"name": "Safe House", },
"rp": 25 {
} "name": "Safe House",
] "rp": 25
}, }
{ ]
"name": "Morlin Armor", },
"type": "gear", {
"resources": [ "name": "Morlin Armor",
{ "type": "gear",
"name": "Light Mail", "resources": [
"rp": 30 {
}, "name": "Light Mail",
{ "rp": 30
"name": "Heavy Mail", },
"rp": 40 {
}, "name": "Heavy Mail",
{ "rp": 40
"name": "Plated Mail", },
"rp": 100 {
} "name": "Plated Mail",
] "rp": 100
}, }
{ ]
"name": "Morlin Weapons", },
"type": "gear", {
"resources": [ "name": "Morlin Weapons",
{ "type": "gear",
"name": "+1 speed", "resources": [
"rp": 15 {
}, "name": "+1 speed",
{ "rp": 15
"name": "+1 VA", },
"rp": 15 {
}, "name": "+1 VA",
{ "rp": 15
"name": "+1 Power", },
"rp": 30 {
} "name": "+1 Power",
] "rp": 30
} }
] ]
}
]
}

@ -1,152 +1,155 @@
[ {
{ "stock": "dwarf",
"name": "Shoddy Arms", "resources": [
"rp": 5, {
"type": "gear" "name": "Shoddy Arms",
}, "rp": 5,
{ "type": "gear"
"name": "Dwarven Arms", },
"rp": 20, {
"type": "gear" "name": "Dwarven Arms",
}, "rp": 20,
{ "type": "gear"
"name": "Shoddy Crossbow", },
"rp": 6, {
"type": "gear" "name": "Shoddy Crossbow",
}, "rp": 6,
{ "type": "gear"
"name": "Dwarven Arbalest", },
"rp": 20, {
"type": "gear" "name": "Dwarven Arbalest",
}, "rp": 20,
{ "type": "gear"
"name": "Dwarven-made Light Mail", },
"rp": 9, {
"type": "gear" "name": "Dwarven-made Light Mail",
}, "rp": 9,
{ "type": "gear"
"name": "Dwarven-made Heavy Mail", },
"rp": 10, {
"type": "gear" "name": "Dwarven-made Heavy Mail",
}, "rp": 10,
{ "type": "gear"
"name": "Dwarven-made Plated Mail", },
"rp": 20, {
"type": "gear" "name": "Dwarven-made Plated Mail",
}, "rp": 20,
{ "type": "gear"
"name": "Dwarven Mail", },
"rp": 100, {
"type": "gear" "name": "Dwarven Mail",
}, "rp": 100,
{ "type": "gear"
"name": "Forge Mask", },
"rp": 40, {
"type": "gear" "name": "Forge Mask",
}, "rp": 40,
{ "type": "gear"
"name": "Dwarven Shield", },
"rp": 20, {
"type": "gear" "name": "Dwarven Shield",
}, "rp": 20,
{ "type": "gear"
"name": "Riding Mount Or Pack Animal", },
"rp": 8, {
"type": "gear" "name": "Riding Mount Or Pack Animal",
}, "rp": 8,
{ "type": "gear"
"name": "Clothes", },
"rp": 1, {
"type": "gear" "name": "Clothes",
}, "rp": 1,
{ "type": "gear"
"name": "Traveling Gear", },
"rp": 1, {
"type": "gear" "name": "Traveling Gear",
}, "rp": 1,
{ "type": "gear"
"name": "Sturdy Shoes", },
"rp": 1, {
"type": "gear" "name": "Sturdy Shoes",
}, "rp": 1,
{ "type": "gear"
"name": "Finery", },
"rp": 5, {
"type": "gear" "name": "Finery",
}, "rp": 5,
{ "type": "gear"
"name": "Chronicles", },
"rp": 15, {
"type": "gear" "name": "Chronicles",
}, "rp": 15,
{ "type": "gear"
"name": "Keg O' Nog", },
"rp": 20, {
"type": "gear" "name": "Keg O' Nog",
}, "rp": 20,
{ "type": "gear"
"name": "Small Dwarven House", },
"rp": 10, {
"type": "property" "name": "Small Dwarven House",
}, "rp": 10,
{ "type": "property"
"name": "Large Dwarven House", },
"rp": 15, {
"type": "property" "name": "Large Dwarven House",
}, "rp": 15,
{ "type": "property"
"name": "A Dwarven Hall", },
"rp": 30, {
"type": "property" "name": "A Dwarven Hall",
}, "rp": 30,
{ "type": "property"
"name": "A Graybeard's Hold", },
"rp": 40, {
"type": "property" "name": "A Graybeard's Hold",
}, "rp": 40,
{ "type": "property"
"name": "An Engineer's Hold", },
"rp": 45, {
"type": "property" "name": "An Engineer's Hold",
}, "rp": 45,
{ "type": "property"
"name": "A Master Artificer's Hold", },
"rp": 60, {
"type": "property" "name": "A Master Artificer's Hold",
}, "rp": 60,
{ "type": "property"
"name": "A Warden's Hold", },
"rp": 75, {
"type": "property" "name": "A Warden's Hold",
}, "rp": 75,
{ "type": "property"
"name": "A High Captain's Hold", },
"rp": 90, {
"type": "property" "name": "A High Captain's Hold",
}, "rp": 90,
{ "type": "property"
"name": "A Prince's Hold", },
"rp": 105, {
"type": "property" "name": "A Prince's Hold",
}, "rp": 105,
{ "type": "property"
"name": "A Workshop", },
"rp": 60, {
"type": "property" "name": "A Workshop",
}, "rp": 60,
{ "type": "property"
"name": "Dwarven Tools", },
"rp": 10, {
"type": "gear" "name": "Dwarven Tools",
}, "rp": 10,
{ "type": "gear"
"name": "Shoddy Tools", },
"rp": 5, {
"type": "gear" "name": "Shoddy Tools",
}, "rp": 5,
{ "type": "gear"
"name": "Carts And Baggage", },
"rp": 15, {
"type": "gear" "name": "Carts And Baggage",
} "rp": 15,
] "type": "gear"
}
]
}

@ -1,176 +1,179 @@
[ {
{ "stock": "elf",
"name": "Run Of The Mill Bow", "resources": [
"type": "gear", {
"rp": 5 "name": "Run Of The Mill Bow",
}, "type": "gear",
{ "rp": 5
"name": "Run Of The Mill Arms", },
"type": "gear", {
"rp": 5 "name": "Run Of The Mill Arms",
}, "type": "gear",
{ "rp": 5
"name": "Reinforced Leather", },
"type": "gear", {
"rp": 3 "name": "Reinforced Leather",
}, "type": "gear",
{ "rp": 3
"name": "Light Mail", },
"type": "gear", {
"rp": 6 "name": "Light Mail",
}, "type": "gear",
{ "rp": 6
"name": "Heavy Mail", },
"type": "gear", {
"rp": 10 "name": "Heavy Mail",
}, "type": "gear",
{ "rp": 10
"name": "Plated Mail", },
"type": "gear", {
"rp": 20 "name": "Plated Mail",
}, "type": "gear",
{ "rp": 20
"name": "Elven Armor", },
"type": "gear", {
"resources": [ "name": "Elven Armor",
{ "type": "gear",
"name": "Gambeson", "resources": [
"rp": 9 {
}, "name": "Gambeson",
{ "rp": 9
"name": "Reinforced Leather", },
"resources": null, {
"rp": 20 "name": "Reinforced Leather",
}, "resources": null,
{ "rp": 20
"name": "Light Mail", },
"resources": null, {
"rp": 30 "name": "Light Mail",
}, "resources": null,
{ "rp": 30
"name": "Heavy Mail", },
"rp": 40 {
}, "name": "Heavy Mail",
{ "rp": 40
"name": "Plated Mail", },
"rp": 75 {
} "name": "Plated Mail",
] "rp": 75
}, }
{ ]
"name": "Elven Arms", },
"type": "gear", {
"rp": 15 "name": "Elven Arms",
}, "type": "gear",
{ "rp": 15
"name": "Elven Bow", },
"type": "gear", {
"rp": 25 "name": "Elven Bow",
}, "type": "gear",
{ "rp": 25
"name": "Elven Cloak", },
"type": "gear", {
"rp": 30 "name": "Elven Cloak",
}, "type": "gear",
{ "rp": 30
"name": "Elven Steed", },
"type": "gear", {
"rp": 8 "name": "Elven Steed",
}, "type": "gear",
{ "rp": 8
"name": "Elven Clothes", },
"type": "gear", {
"rp": 2 "name": "Elven Clothes",
}, "type": "gear",
{ "rp": 2
"name": "Elven Shoes", },
"type": "gear", {
"rp": 1 "name": "Elven Shoes",
}, "type": "gear",
{ "rp": 1
"name": "Elven Finery", },
"type": "gear", {
"rp": 5 "name": "Elven Finery",
}, "type": "gear",
{ "rp": 5
"name": "Elven Rope", },
"type": "gear", {
"rp": 12 "name": "Elven Rope",
}, "type": "gear",
{ "rp": 12
"name": "Elven Bread", },
"type": "gear", {
"rp": 10 "name": "Elven Bread",
}, "type": "gear",
{ "rp": 10
"name": "Elven Mirrorwine", },
"type": "gear", {
"rp": 8 "name": "Elven Mirrorwine",
}, "type": "gear",
{ "rp": 8
"name": "Starlight", },
"type": "gear", {
"rp": 50 "name": "Starlight",
}, "type": "gear",
{ "rp": 50
"name": "Tome Of Lore", },
"type": "gear", {
"rp": 20 "name": "Tome Of Lore",
}, "type": "gear",
{ "rp": 20
"name": "Elven Instrument", },
"type": "gear", {
"rp": 6 "name": "Elven Instrument",
}, "type": "gear",
{ "rp": 6
"name": "Personal Effects", },
"type": "gear", {
"rp": 1 "name": "Personal Effects",
}, "type": "gear",
{ "rp": 1
"name": "Elven Smithy", },
"type": "property", {
"rp": 50 "name": "Elven Smithy",
}, "type": "property",
{ "rp": 50
"name": "Artisan's Shop", },
"type": "property", {
"rp": 60 "name": "Artisan's Shop",
}, "type": "property",
{ "rp": 60
"name": "Skill Tools", },
"type": "gear", {
"rp": 9 "name": "Skill Tools",
}, "type": "gear",
{ "rp": 9
"name": "Elven Ship", },
"type": "gear", {
"rp": 80 "name": "Elven Ship",
}, "type": "gear",
{ "rp": 80
"name": "Elven Land", },
"type": "property", {
"resources": [ "name": "Elven Land",
{ "type": "property",
"name": "Pastoral", "resources": [
"rp": 20 {
}, "name": "Pastoral",
{ "rp": 20
"name": "Large Country Manor And Land", },
"rp": 50 {
}, "name": "Large Country Manor And Land",
{ "rp": 50
"name": "Palace", },
"rp": 100 {
}, "name": "Palace",
{ "rp": 100
"name": "A Forest, Bay Or Mountain", },
"rp": 150 {
}, "name": "A Forest, Bay Or Mountain",
{ "rp": 150
"name": "Apartment In The Citadel", },
"rp": 25 {
} "name": "Apartment In The Citadel",
] "rp": 25
} }
] ]
}
]
}

@ -1,434 +1,437 @@
[ {
{ "stock": "man",
"name": "Arms", "resources": [
"type": "gear", {
"resources": [ "name": "Arms",
{ "type": "gear",
"name": "Poor Quality", "resources": [
"rp": 3 {
}, "name": "Poor Quality",
{ "rp": 3
"name": "Run Of The Mill Quality", },
"rp": 5 {
}, "name": "Run Of The Mill Quality",
{ "rp": 5
"name": "Superior Quality", },
"rp": 20 {
} "name": "Superior Quality",
] "rp": 20
}, }
{ ]
"name": "Missile Weapons", },
"type": "gear", {
"resources": [ "name": "Missile Weapons",
{ "type": "gear",
"name": "Throwing Weapons", "resources": [
"resources": [ {
{ "name": "Throwing Weapons",
"name": "Poor Quality", "resources": [
"rp": 2 {
}, "name": "Poor Quality",
{ "rp": 2
"name": "Run Of The Mill Quality", },
"rp": 3 {
}, "name": "Run Of The Mill Quality",
{ "rp": 3
"name": "Superior Quality", },
"rp": 9 {
} "name": "Superior Quality",
] "rp": 9
}, }
{ ]
"name": "Hunting Bow", },
"resources": [ {
{ "name": "Hunting Bow",
"name": "Poor Quality", "resources": [
"rp": 3 {
}, "name": "Poor Quality",
{ "rp": 3
"name": "Run Of The Mill Quality", },
"rp": 5 {
}, "name": "Run Of The Mill Quality",
{ "rp": 5
"name": "Superior Quality", },
"rp": 15 {
} "name": "Superior Quality",
] "rp": 15
}, }
{ ]
"name": "Great Bow", },
"resources": [ {
{ "name": "Great Bow",
"name": "Poor Quality", "resources": [
"rp": 5 {
}, "name": "Poor Quality",
{ "rp": 5
"name": "Run Of The Mill Quality", },
"rp": 10 {
}, "name": "Run Of The Mill Quality",
{ "rp": 10
"name": "Superior Quality", },
"rp": 30 {
} "name": "Superior Quality",
] "rp": 30
}, }
{ ]
"name": "Crossbow", },
"resources": [ {
{ "name": "Crossbow",
"name": "Poor Quality", "resources": [
"rp": 4 {
}, "name": "Poor Quality",
{ "rp": 4
"name": "Run Of The Mill Quality", },
"rp": 7 {
}, "name": "Run Of The Mill Quality",
{ "rp": 7
"name": "Superior Quality", },
"rp": 21 {
} "name": "Superior Quality",
] "rp": 21
}, }
{ ]
"name": "Heavy Crossbow", },
"resources": [ {
{ "name": "Heavy Crossbow",
"name": "Poor Quality", "resources": [
"rp": 6 {
}, "name": "Poor Quality",
{ "rp": 6
"name": "Run Of The Mill Quality", },
"rp": 12 {
}, "name": "Run Of The Mill Quality",
{ "rp": 12
"name": "Superior Quality", },
"rp": 36 {
} "name": "Superior Quality",
] "rp": 36
}, }
{ ]
"name": "Pistol", },
"resources": [ {
{ "name": "Pistol",
"name": "Poor Quality", "resources": [
"rp": 8 {
}, "name": "Poor Quality",
{ "rp": 8
"name": "Run Of The Mill Quality", },
"rp": 15 {
}, "name": "Run Of The Mill Quality",
{ "rp": 15
"name": "Superior Quality", },
"rp": 45 {
} "name": "Superior Quality",
] "rp": 45
}, }
{ ]
"name": "Arquebus", },
"resources": [ {
{ "name": "Arquebus",
"name": "Poor Quality", "resources": [
"rp": 10 {
}, "name": "Poor Quality",
{ "rp": 10
"name": "Run Of The Mill Quality", },
"rp": 20 {
}, "name": "Run Of The Mill Quality",
{ "rp": 20
"name": "Superior Quality", },
"rp": 60 {
} "name": "Superior Quality",
] "rp": 60
} }
] ]
}, }
{ ]
"name": "Armor", },
"type": "gear", {
"resources": [ "name": "Armor",
{ "type": "gear",
"name": "Gambeson", "resources": [
"resources": [ {
{ "name": "Gambeson",
"name": "Poor Quality", "resources": [
"rp": 2 {
}, "name": "Poor Quality",
{ "rp": 2
"name": "Run Of The Mill Quality", },
"rp": 3 {
}, "name": "Run Of The Mill Quality",
{ "rp": 3
"name": "Superior Quality", },
"rp": 12 {
} "name": "Superior Quality",
] "rp": 12
}, }
{ ]
"name": "Reinforced Leather", },
"resources": [ {
{ "name": "Reinforced Leather",
"name": "Poor Quality", "resources": [
"rp": 3 {
}, "name": "Poor Quality",
{ "rp": 3
"name": "Run Of The Mill Quality", },
"rp": 6 {
}, "name": "Run Of The Mill Quality",
{ "rp": 6
"name": "Superior Quality", },
"rp": 24 {
} "name": "Superior Quality",
] "rp": 24
}, }
{ ]
"name": "Light Mail", },
"resources": [ {
{ "name": "Light Mail",
"name": "Poor Quality", "resources": [
"rp": 5 {
}, "name": "Poor Quality",
{ "rp": 5
"name": "Run Of The Mill Quality", },
"rp": 10 {
}, "name": "Run Of The Mill Quality",
{ "rp": 10
"name": "Superior Quality", },
"rp": 40 {
} "name": "Superior Quality",
] "rp": 40
}, }
{ ]
"name": "Heavy Mail", },
"resources": [ {
{ "name": "Heavy Mail",
"name": "Poor Quality", "resources": [
"rp": 8 {
}, "name": "Poor Quality",
{ "rp": 8
"name": "Run Of The Mill Quality", },
"rp": 15 {
}, "name": "Run Of The Mill Quality",
{ "rp": 15
"name": "Superior Quality", },
"rp": 60 {
} "name": "Superior Quality",
] "rp": 60
}, }
{ ]
"name": "Plated Mail", },
"resources": [ {
{ "name": "Plated Mail",
"name": "Poor Quality", "resources": [
"rp": 10 {
}, "name": "Poor Quality",
{ "rp": 10
"name": "Run Of The Mill Quality", },
"rp": 20 {
}, "name": "Run Of The Mill Quality",
{ "rp": 20
"name": "Superior Quality", },
"rp": 80 {
} "name": "Superior Quality",
] "rp": 80
}, }
{ ]
"name": "Full Plated Mail", },
"resources": [ {
{ "name": "Full Plated Mail",
"name": "Poor Quality", "resources": [
"rp": 25 {
}, "name": "Poor Quality",
{ "rp": 25
"name": "Run Of The Mill Quality", },
"rp": 50 {
}, "name": "Run Of The Mill Quality",
{ "rp": 50
"name": "Superior Quality", },
"rp": 200 {
} "name": "Superior Quality",
] "rp": 200
} }
] ]
}, }
{ ]
"name": "Riding Mount Or Pack Animal", },
"rp": 5, {
"type": "gear" "name": "Riding Mount Or Pack Animal",
}, "rp": 5,
{ "type": "gear"
"name": "Warhorse", },
"rp": 12, {
"type": "gear" "name": "Warhorse",
}, "rp": 12,
{ "type": "gear"
"name": "Clothes", },
"rp": 1, {
"type": "gear" "name": "Clothes",
}, "rp": 1,
{ "type": "gear"
"name": "Traveling Gear", },
"rp": 1, {
"type": "gear" "name": "Traveling Gear",
}, "rp": 1,
{ "type": "gear"
"name": "Shoes", },
"rp": 1, {
"type": "gear" "name": "Shoes",
}, "rp": 1,
{ "type": "gear"
"name": "Personal Effects", },
"rp": 1, {
"type": "gear" "name": "Personal Effects",
}, "rp": 1,
{ "type": "gear"
"name": "Finery", },
"rp": 5, {
"type": "gear" "name": "Finery",
}, "rp": 5,
{ "type": "gear"
"name": "Cash", },
"rp": 6, {
"type": "gear" "name": "Cash",
}, "rp": 6,
{ "type": "gear"
"name": "Skill Toolkit", },
"rp": 8, {
"type": "gear" "name": "Skill Toolkit",
}, "rp": 8,
{ "type": "gear"
"name": "Workshop", },
"rp": 20, {
"type": "property" "name": "Workshop",
}, "rp": 20,
{ "type": "property"
"name": "Companion Animal", },
"rp": 3, {
"type": "gear" "name": "Companion Animal",
}, "rp": 3,
{ "type": "gear"
"name": "Herd Of Animals", },
"rp": 20, {
"type": "property" "name": "Herd Of Animals",
}, "rp": 20,
{ "type": "property"
"name": "Rent", },
"rp": 5, {
"type": "property" "name": "Rent",
}, "rp": 5,
{ "type": "property"
"name": "Property", },
"type": "property", {
"resources": [ "name": "Property",
{ "type": "property",
"name": "A Leaky Shack", "resources": [
"rp": 1 {
}, "name": "A Leaky Shack",
{ "rp": 1
"name": "A Small Cottage", },
"rp": 3 {
}, "name": "A Small Cottage",
{ "rp": 3
"name": "A House", },
"rp": 10 {
}, "name": "A House",
{ "rp": 10
"name": "A \"Cottage Industry\" Like A Weaver", },
"rp": 10 {
}, "name": "A \"Cottage Industry\" Like A Weaver",
{ "rp": 10
"name": "A Villa Or Farm", },
"rp": 15 {
}, "name": "A Villa Or Farm",
{ "rp": 15
"name": "A Small Business", },
"rp": 20 {
}, "name": "A Small Business",
{ "rp": 20
"name": "Moderate-sized Business", },
"rp": 30 {
}, "name": "Moderate-sized Business",
{ "rp": 30
"name": "A Manor Or Small Estate", },
"rp": 40 {
}, "name": "A Manor Or Small Estate",
{ "rp": 40
"name": "An Urban Hotel", },
"rp": 40 {
}, "name": "An Urban Hotel",
{ "rp": 40
"name": "A Well-paid Position (Like Mayor)", },
"rp": 45 {
}, "name": "A Well-paid Position (Like Mayor)",
{ "rp": 45
"name": "A Successful Small Business", },
"rp": 60 {
}, "name": "A Successful Small Business",
{ "rp": 60
"name": "A Large Business", },
"rp": 60 {
}, "name": "A Large Business",
{ "rp": 60
"name": "A Keep", },
"rp": 60 {
}, "name": "A Keep",
{ "rp": 60
"name": "A Fortress", },
"rp": 75 {
}, "name": "A Fortress",
{ "rp": 75
"name": "A Moderate-sized Estate", },
"rp": 75 {
}, "name": "A Moderate-sized Estate",
{ "rp": 75
"name": "A Castle With Attendant Town", },
"rp": 90 {
}, "name": "A Castle With Attendant Town",
{ "rp": 90
"name": "A Large Estate", },
"rp": 90 {
}, "name": "A Large Estate",
{ "rp": 90
"name": "A Palace", },
"rp": 105 {
}, "name": "A Palace",
{ "rp": 105
"name": "A Government Position In A Prosperous Town", },
"rp": 105 {
} "name": "A Government Position In A Prosperous Town",
] "rp": 105
}, }
{ ]
"name": "Boat", },
"type": "property", {
"resources": [ "name": "Boat",
{ "type": "property",
"name": "A Rowboat Or Skiff", "resources": [
"rp": 5 {
}, "name": "A Rowboat Or Skiff",
{ "rp": 5
"name": "A Longboat", },
"rp": 10 {
}, "name": "A Longboat",
{ "rp": 10
"name": "A Junk", },
"rp": 15 {
}, "name": "A Junk",
{ "rp": 15
"name": "A Felucca", },
"rp": 30 {
}, "name": "A Felucca",
{ "rp": 30
"name": "A Carrack", },
"rp": 60 {
}, "name": "A Carrack",
{ "rp": 60
"name": "A Caravel", },
"rp": 75 {
}, "name": "A Caravel",
{ "rp": 75
"name": "Treasure Ship", },
"rp": 105 {
} "name": "Treasure Ship",
] "rp": 105
} }
] ]
}
]
}

@ -1,211 +1,214 @@
[ {
{ "stock": "orc",
"name": "Rags", "resources": [
"rp": 1, {
"type": "gear" "name": "Rags",
}, "rp": 1,
{ "type": "gear"
"name": "Traveling Gear", },
"rp": 3, {
"type": "gear" "name": "Traveling Gear",
}, "rp": 3,
{ "type": "gear"
"name": "Hobnailed Boots", },
"rp": 1, {
"type": "gear" "name": "Hobnailed Boots",
}, "rp": 1,
{ "type": "gear"
"name": "Orc Arms", },
"type": "gear", {
"resources": [ "name": "Orc Arms",
{ "type": "gear",
"name": "Poor Quality", "resources": [
"rp": 3 {
}, "name": "Poor Quality",
{ "rp": 3
"name": "Run Of The Mill Quality", },
"rp": 5 {
} "name": "Run Of The Mill Quality",
] "rp": 5
}, }
{ ]
"name": "Armor", },
"type": "gear", {
"resources": [ "name": "Armor",
{ "type": "gear",
"name": "Hides", "resources": [
"resources": [ {
{ "name": "Hides",
"name": "Poor Quality", "resources": [
"rp": 1 {
} "name": "Poor Quality",
] "rp": 1
}, }
{ ]
"name": "Reinforced Hides", },
"resources": [ {
{ "name": "Reinforced Hides",
"name": "Poor Quality", "resources": [
"rp": 3 {
} "name": "Poor Quality",
] "rp": 3
}, }
{ ]
"name": "Reinforced Leather", },
"resources": [ {
{ "name": "Reinforced Leather",
"name": "Run Of The Mill Quality", "resources": [
"rp": 8 {
}, "name": "Run Of The Mill Quality",
{ "rp": 8
"name": "Superior Quality", },
"rp": 25 {
} "name": "Superior Quality",
] "rp": 25
}, }
{ ]
"name": "Light Mail", },
"resources": [ {
{ "name": "Light Mail",
"name": "Poor Quality", "resources": [
"rp": 5 {
}, "name": "Poor Quality",
{ "rp": 5
"name": "Run Of The Mill Quality", },
"rp": 12 {
} "name": "Run Of The Mill Quality",
] "rp": 12
}, }
{ ]
"name": "Heavy Mail", },
"resources": [ {
{ "name": "Heavy Mail",
"name": "Poor Quality", "resources": [
"rp": 8 {
}, "name": "Poor Quality",
{ "rp": 8
"name": "Run Of The Mill Quality", },
"rp": 20 {
} "name": "Run Of The Mill Quality",
] "rp": 20
} }
] ]
}, }
{ ]
"name": "Missile Weapons", },
"type": "gear", {
"resources": [ "name": "Missile Weapons",
{ "type": "gear",
"name": "Bow", "resources": [
"resources": [ {
{ "name": "Bow",
"name": "Poor Quality", "resources": [
"rp": 3 {
}, "name": "Poor Quality",
{ "rp": 3
"name": "Run Of The Mill Quality", },
"rp": 5 {
} "name": "Run Of The Mill Quality",
] "rp": 5
}, }
{ ]
"name": "Crossbow", },
"resources": [ {
{ "name": "Crossbow",
"name": "Poor Quality", "resources": [
"rp": 4 {
}, "name": "Poor Quality",
{ "rp": 4
"name": "Run Of The Mill Quality", },
"rp": 6 {
} "name": "Run Of The Mill Quality",
] "rp": 6
}, }
{ ]
"name": "Iron-cased Bombs", },
"resources": null, {
"rp": 10 "name": "Iron-cased Bombs",
} "resources": null,
] "rp": 10
}, }
{ ]
"name": "Black Iron Helmet", },
"rp": 5, {
"type": "gear" "name": "Black Iron Helmet",
}, "rp": 5,
{ "type": "gear"
"name": "Black Iron Shield", },
"rp": 4, {
"type": "gear" "name": "Black Iron Shield",
}, "rp": 4,
{ "type": "gear"
"name": "Riding Mount Or Pack Animal", },
"rp": 5, {
"type": "gear" "name": "Riding Mount Or Pack Animal",
}, "rp": 5,
{ "type": "gear"
"name": "Great Wolf Mount", },
"rp": 15, {
"type": "gear" "name": "Great Wolf Mount",
}, "rp": 15,
{ "type": "gear"
"name": "Whip", },
"rp": 2, {
"type": "gear" "name": "Whip",
}, "rp": 2,
{ "type": "gear"
"name": "Poison", },
"rp": 5, {
"type": "gear" "name": "Poison",
}, "rp": 5,
{ "type": "gear"
"name": "Brazen Horn", },
"rp": 9, {
"type": "gear" "name": "Brazen Horn",
}, "rp": 9,
{ "type": "gear"
"name": "Clan Banner", },
"rp": 9, {
"type": "gear" "name": "Clan Banner",
}, "rp": 9,
{ "type": "gear"
"name": "Skill Tools", },
"rp": 9, {
"type": "gear" "name": "Skill Tools",
}, "rp": 9,
{ "type": "gear"
"name": "Riding Harness For Wolf", },
"rp": 5, {
"type": "gear" "name": "Riding Harness For Wolf",
}, "rp": 5,
{ "type": "gear"
"name": "Servant's Black Robes", },
"rp": 1, {
"type": "gear" "name": "Servant's Black Robes",
}, "rp": 1,
{ "type": "gear"
"name": "Servant's Leather Apron", },
"rp": 1, {
"type": "gear" "name": "Servant's Leather Apron",
}, "rp": 1,
{ "type": "gear"
"name": "Ceremonial Knives", },
"rp": 3, {
"type": "gear" "name": "Ceremonial Knives",
}, "rp": 3,
{ "type": "gear"
"name": "Ceremonial Axe Or Sword", },
"rp": 7, {
"type": "gear" "name": "Ceremonial Axe Or Sword",
}, "rp": 7,
{ "type": "gear"
"name": "Servant's Tools Of The Trade", },
"rp": 7, {
"type": "gear" "name": "Servant's Tools Of The Trade",
}, "rp": 7,
{ "type": "gear"
"name": "Poisoner's Toolkit", },
"rp": 7, {
"type": "gear" "name": "Poisoner's Toolkit",
} "rp": 7,
] "type": "gear"
}
]
}

@ -1,139 +1,142 @@
[ {
{ "stock": "roden",
"name": "Arms", "resources": [
"rp": 5, {
"type": "gear" "name": "Arms",
}, "rp": 5,
{ "type": "gear"
"name": "Roden Throwing Blades", },
"rp": 15, {
"type": "gear" "name": "Roden Throwing Blades",
}, "rp": 15,
{ "type": "gear"
"name": "Wooden Shield", },
"rp": 2, {
"type": "gear" "name": "Wooden Shield",
}, "rp": 2,
{ "type": "gear"
"name": "Armor", },
"type": "gear", {
"resources": [ "name": "Armor",
{ "type": "gear",
"name": "Gambeson", "resources": [
"rp": 5 {
}, "name": "Gambeson",
{ "rp": 5
"name": "Reinforced Leather", },
"rp": 10 {
}, "name": "Reinforced Leather",
{ "rp": 10
"name": "Light Mail", },
"rp": 15 {
}, "name": "Light Mail",
{ "rp": 15
"name": "Heavy Mail", },
"rp": 20 {
} "name": "Heavy Mail",
] "rp": 20
}, }
{ ]
"name": "Property", },
"type": "property", {
"resources": [ "name": "Property",
{ "type": "property",
"name": "Rat's Nest Property", "resources": [
"resources": [ {
{ "name": "Rat's Nest Property",
"name": "Den", "resources": [
"rp": 7 {
}, "name": "Den",
{ "rp": 7
"name": "Nest", },
"rp": 10 {
}, "name": "Nest",
{ "rp": 10
"name": "Apiary", },
"rp": 10 {
}, "name": "Apiary",
{ "rp": 10
"name": "Fields", },
"rp": 15 {
} "name": "Fields",
] "rp": 15
} }
] ]
}, }
{ ]
"name": "Workshop", },
"type": "property", {
"rp": 20 "name": "Workshop",
}, "type": "property",
{ "rp": 20
"name": "Animal Herd", },
"type": "property", {
"rp": 10 "name": "Animal Herd",
}, "type": "property",
{ "rp": 10
"name": "Clothes", },
"type": "gear", {
"rp": 1 "name": "Clothes",
}, "type": "gear",
{ "rp": 1
"name": "Traveling Gear", },
"type": "gear", {
"rp": 1 "name": "Traveling Gear",
}, "type": "gear",
{ "rp": 1
"name": "Shoes", },
"type": "gear", {
"rp": 3 "name": "Shoes",
}, "type": "gear",
{ "rp": 3
"name": "Tool Kit", },
"type": "gear", {
"rp": 9 "name": "Tool Kit",
}, "type": "gear",
{ "rp": 9
"name": "Firebombs", },
"type": "gear", {
"rp": 20 "name": "Firebombs",
}, "type": "gear",
{ "rp": 20
"name": "Robes Of The Ordained", },
"type": "gear", {
"rp": 1 "name": "Robes Of The Ordained",
}, "type": "gear",
{ "rp": 1
"name": "Honeyed Oatcakes", },
"type": "gear", {
"rp": 5 "name": "Honeyed Oatcakes",
}, "type": "gear",
{ "rp": 5
"name": "Dandewine", },
"type": "gear", {
"rp": 5 "name": "Dandewine",
}, "type": "gear",
{ "rp": 5
"name": "Blood Blossom", },
"type": "gear", {
"rp": 5 "name": "Blood Blossom",
}, "type": "gear",
{ "rp": 5
"name": "Visionary Cult", },
"type": "affiliation", {
"resources": [ "name": "Visionary Cult",
{ "type": "affiliation",
"name": "1d Cult", "resources": [
"rp": 10 {
}, "name": "1d Cult",
{ "rp": 10
"name": "2d Cult", },
"rp": 25 {
}, "name": "2d Cult",
{ "rp": 25
"name": "3d Cult", },
"rp": 50 {
} "name": "3d Cult",
] "rp": 50
} }
] ]
}
]
}

@ -1,42 +1,45 @@
[ {
{ "stock": "wolf",
"name": "Territory", "resources": [
"type": "property", {
"resources": [ "name": "Territory",
{ "type": "property",
"name": "Barren", "resources": [
"rp": 5 {
}, "name": "Barren",
{ "rp": 5
"name": "Wild Grounds", },
"rp": 10 {
}, "name": "Wild Grounds",
{ "rp": 10
"name": "Plentiful Range", },
"rp": 15 {
} "name": "Plentiful Range",
] "rp": 15
}, }
{ ]
"name": "Armor", },
"type": "gear", {
"resources": [ "name": "Armor",
{ "type": "gear",
"name": "Plated Leather Chanfron", "resources": [
"rp": 3 {
}, "name": "Plated Leather Chanfron",
{ "rp": 3
"name": "Leather Collar", },
"rp": 2 {
}, "name": "Leather Collar",
{ "rp": 2
"name": "Plated Body Armor", },
"rp": 6 {
}, "name": "Plated Body Armor",
{ "rp": 6
"name": "Leather Greaves And Cuissarts", },
"rp": 2 {
} "name": "Leather Greaves And Cuissarts",
] "rp": 2
} }
] ]
}
]
}

@ -1,57 +1,60 @@
[ {
{ "stock": "troll",
"name": "Rags", "resources": [
"type": "gear", {
"rp": 1 "name": "Rags",
}, "type": "gear",
{ "rp": 1
"name": "Troll Shoes", },
"type": "gear", {
"rp": 1 "name": "Troll Shoes",
}, "type": "gear",
{ "rp": 1
"name": "Sack", },
"type": "gear", {
"rp": 1 "name": "Sack",
}, "type": "gear",
{ "rp": 1
"name": "Chest or Footlocker", },
"type": "gear", {
"rp": 3 "name": "Chest or Footlocker",
}, "type": "gear",
{ "rp": 3
"name": "Trophies", },
"type": "gear", {
"rp": 3 "name": "Trophies",
}, "type": "gear",
{ "rp": 3
"name": "Shiny Trophies", },
"type": "gear", {
"rp": 7 "name": "Shiny Trophies",
}, "type": "gear",
{ "rp": 7
"name": "Pile of Rocks", },
"type": "gear", {
"rp": 2 "name": "Pile of Rocks",
}, "type": "gear",
{ "rp": 2
"name": "Troll Lash", },
"type": "gear", {
"rp": 5 "name": "Troll Lash",
}, "type": "gear",
{ "rp": 5
"name": "Mattock", },
"type": "gear", {
"rp": 10 "name": "Mattock",
}, "type": "gear",
{ "rp": 10
"name": "Black Iron Shield", },
"type": "gear", {
"rp": 5 "name": "Black Iron Shield",
}, "type": "gear",
{ "rp": 5
"name": "Cave Hole", },
"type": "property", {
"rp": 5 "name": "Cave Hole",
} "type": "property",
] "rp": 5
}
]
}

@ -16,7 +16,8 @@ module Charred
lifepaths = contents["settings"] lifepaths = contents["settings"]
file = File.read("data/dark_elf/resources.json") file = File.read("data/dark_elf/resources.json")
resources = JSON.parse(file) contents = JSON.parse(file)
resources = contents["resources"]
data[:resources]['elf'] += resources data[:resources]['elf'] += resources
elf = data[:lifepaths]['elf'] elf = data[:lifepaths]['elf']

@ -22,7 +22,8 @@ module Charred
lifepaths[stock] = contents["settings"] lifepaths[stock] = contents["settings"]
file = File.read("data/gold/resources/#{stock}.json") file = File.read("data/gold/resources/#{stock}.json")
resources[stock] = JSON.parse(file) contents = JSON.parse(file)
resources[stock] = contents["resources"]
file = File.read("data/gold/stocks/#{stock}.json") file = File.read("data/gold/stocks/#{stock}.json")
stocks[stock] = Stock.new(JSON.parse(file)) stocks[stock] = Stock.new(JSON.parse(file))

@ -18,7 +18,8 @@ module Charred
data[:lifepaths]['troll'] = lifepaths data[:lifepaths]['troll'] = lifepaths
file = File.read("data/troll/resources.json") file = File.read("data/troll/resources.json")
resources = JSON.parse(file) contents = JSON.parse(file)
resources = contents["resources"]
data[:resources]['troll'] = resources data[:resources]['troll'] = resources
file = File.read("data/troll/stock.json") file = File.read("data/troll/stock.json")

Loading…
Cancel
Save