From bb908d9bfdd558551843ecdd9c3e92ffa3480b09 Mon Sep 17 00:00:00 2001 From: Daniel Asher Resnick Date: Sat, 14 Jan 2023 14:48:07 -0600 Subject: [PATCH] Add adjectives to stock files --- src/data/gold/stocks/dwarf.json | 1 + src/data/gold/stocks/elf.json | 1 + src/data/gold/stocks/man.json | 1 + src/data/gold/stocks/orc.json | 1 + src/data/gold/stocks/roden.json | 1 + src/data/gold/stocks/wolf.json | 1 + src/data/troll/stock.json | 1 + src/lib/data/gold.rb | 2 -- src/lib/stock.rb | 12 +++++++----- 9 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/data/gold/stocks/dwarf.json b/src/data/gold/stocks/dwarf.json index 9f0a65a..8380f1f 100644 --- a/src/data/gold/stocks/dwarf.json +++ b/src/data/gold/stocks/dwarf.json @@ -2,6 +2,7 @@ "key": "dwarf", "name": "Dwarf", "stride": 6, + "adjective": "dwarven", "common_traits": [ "Accustomed To The Dark", "Bearded", diff --git a/src/data/gold/stocks/elf.json b/src/data/gold/stocks/elf.json index 48a6c7d..1a1ca46 100644 --- a/src/data/gold/stocks/elf.json +++ b/src/data/gold/stocks/elf.json @@ -2,6 +2,7 @@ "key": "elf", "name": "Elf", "stride": 8, + "adjective": "elven", "common_traits": [ "Born Under The Silver Stars", "Essence Of The Earth", diff --git a/src/data/gold/stocks/man.json b/src/data/gold/stocks/man.json index 7e452c7..44f27ec 100644 --- a/src/data/gold/stocks/man.json +++ b/src/data/gold/stocks/man.json @@ -2,6 +2,7 @@ "key": "man", "name": "Man", "stride": 7, + "adjective": "mannish", "common_traits": [ ], "starting_stats": diff --git a/src/data/gold/stocks/orc.json b/src/data/gold/stocks/orc.json index 36daaca..78f0bf0 100644 --- a/src/data/gold/stocks/orc.json +++ b/src/data/gold/stocks/orc.json @@ -2,6 +2,7 @@ "key": "orc", "name": "Orc", "stride": 7, + "adjective": "orcish", "common_traits": [ "Cannibal", "Cold Black Blood", diff --git a/src/data/gold/stocks/roden.json b/src/data/gold/stocks/roden.json index 1914eda..88d02d5 100644 --- a/src/data/gold/stocks/roden.json +++ b/src/data/gold/stocks/roden.json @@ -2,6 +2,7 @@ "key": "roden", "name": "Roden", "stride": 8, + "adjective": "roden", "common_traits": [ "Aecer's Likeness", "Coat Of Fur", diff --git a/src/data/gold/stocks/wolf.json b/src/data/gold/stocks/wolf.json index c717798..e47560e 100644 --- a/src/data/gold/stocks/wolf.json +++ b/src/data/gold/stocks/wolf.json @@ -2,6 +2,7 @@ "key": "wolf", "name": "Wolf", "stride": 11, + "adjective": "wolfish", "common_traits": [ "Crushing Jaws", "Deep Fur", diff --git a/src/data/troll/stock.json b/src/data/troll/stock.json index a1139c4..287840f 100644 --- a/src/data/troll/stock.json +++ b/src/data/troll/stock.json @@ -2,6 +2,7 @@ "key": "troll", "name": "Troll", "stride": 7, + "adjective": "trollish", "common_traits": [ "Black Nails", "Fangs", diff --git a/src/lib/data/gold.rb b/src/lib/data/gold.rb index 557c548..4c3bb07 100644 --- a/src/lib/data/gold.rb +++ b/src/lib/data/gold.rb @@ -12,7 +12,6 @@ module Charred lifepaths = {} resources = {} - stat_pts = {} stocks = {} gold_stocks = ['dwarf', 'elf', 'man', 'orc', 'roden', 'wolf'] @@ -33,7 +32,6 @@ module Charred :traits => traits, :lifepaths => lifepaths, :resources => resources, - :stat_pts => stat_pts, :stocks => stocks }) end diff --git a/src/lib/stock.rb b/src/lib/stock.rb index 31ac207..f311d26 100644 --- a/src/lib/stock.rb +++ b/src/lib/stock.rb @@ -12,17 +12,19 @@ module Charred @key = h["key"] @name = h["name"] || @key @stride = h["stride"] || @@default_stride + @adjective = h["adjective"] || @key+"ish" @common_traits = h["common_traits"] @starting_stats = h["starting_stats"] end def as_json(options = {}) { - "key" => key, - "name" => name, - "stride" => stride, - "common_traits" => common_traits, - "starting_stats" => starting_stats + "key" => @key, + "name" => @name, + "stride" => @stride, + "adjective" => @adjective, + "common_traits" => @common_traits, + "starting_stats" => @starting_stats } end def to_json(*a)