From 8346c147faf11d99af370d2bfaa6a982d570f8df Mon Sep 17 00:00:00 2001 From: David Gay Date: Mon, 22 Jan 2024 01:48:07 -0500 Subject: Add chances_for_magic data --- src/data/rules/classes.yaml | 100 ++++++++++++++++++++++++++++++++++++++++++++ src/rules/classes.rs | 1 + 2 files changed, 101 insertions(+) diff --git a/src/data/rules/classes.yaml b/src/data/rules/classes.yaml index 7cfa03f..8d9173c 100644 --- a/src/data/rules/classes.yaml +++ b/src/data/rules/classes.yaml @@ -4,12 +4,32 @@ cleric: - Wisdom npc_ability_score_modifiers: Wisdom: 2 + chances_for_magic: + sword: 0 + misc_weapon: 10 + armor_shield: 10 + protection: 2 + potion: 5 + scroll: 5 + ring: 5 + rod_staff_wand: 5 + misc: 5 druid: name: "Druid" prime_requisites: - Wisdom - Charisma + chances_for_magic: + sword: 0 + misc_weapon: 10 + armor_shield: 10 + protection: 2 + potion: 5 + scroll: 5 + ring: 5 + rod_staff_wand: 5 + misc: 5 fighter: name: "Fighter" @@ -18,6 +38,16 @@ fighter: npc_ability_score_modifiers: Strength: 2 Constitution: 1 + chances_for_magic: + sword: 10 + misc_weapon: 5 + armor_shield: 10 + protection: 2 + potion: 3 + scroll: 1 + ring: 5 + rod_staff_wand: 0 + misc: 5 paladin: name: "Paladin" @@ -27,6 +57,16 @@ paladin: npc_ability_score_modifiers: Strength: 2 Constitution: 1 + chances_for_magic: + sword: 10 + misc_weapon: 5 + armor_shield: 10 + protection: 2 + potion: 3 + scroll: 1 + ring: 5 + rod_staff_wand: 0 + misc: 5 ranger: name: "Ranger" @@ -37,6 +77,16 @@ ranger: npc_ability_score_modifiers: Strength: 2 Constitution: 1 + chances_for_magic: + sword: 10 + misc_weapon: 5 + armor_shield: 10 + protection: 2 + potion: 3 + scroll: 1 + ring: 5 + rod_staff_wand: 0 + misc: 5 magic-user: name: "Magic-user" @@ -45,12 +95,32 @@ magic-user: npc_ability_score_modifiers: Intelligence: 2 Dexterity: 1 + chances_for_magic: + sword: 0 + misc_weapon: 5 + armor_shield: 0 + protection: 10 + potion: 10 + scroll: 10 + ring: 5 + rod_staff_wand: 5 + misc: 5 illusionist: name: "Illusionist" prime_requisites: - Intelligence - Dexterity + chances_for_magic: + sword: 0 + misc_weapon: 5 + armor_shield: 0 + protection: 10 + potion: 10 + scroll: 10 + ring: 5 + rod_staff_wand: 5 + misc: 5 thief: name: "Thief" @@ -59,6 +129,16 @@ thief: npc_ability_score_modifiers: Dexterity: 2 Intelligence: 1 + chances_for_magic: + sword: 10 + misc_weapon: 5 + armor_shield: 10 + protection: 2 + potion: 3 + scroll: 1 + ring: 5 + rod_staff_wand: 0 + misc: 5 assassin: name: "Assassin" @@ -69,6 +149,16 @@ assassin: Strength: 1 Dexterity: 2 Intelligence: 1 + chances_for_magic: + sword: 10 + misc_weapon: 5 + armor_shield: 10 + protection: 2 + potion: 3 + scroll: 1 + ring: 5 + rod_staff_wand: 0 + misc: 5 monk: name: "Monk" @@ -76,3 +166,13 @@ monk: - Strength - Wisdom - Dexterity + chances_for_magic: + sword: 0 + misc_weapon: 5 + armor_shield: 0 + protection: 2 + potion: 0 + scroll: 0 + ring: 5 + rod_staff_wand: 0 + misc: 5 diff --git a/src/rules/classes.rs b/src/rules/classes.rs index a034922..d933bc1 100644 --- a/src/rules/classes.rs +++ b/src/rules/classes.rs @@ -12,6 +12,7 @@ pub struct Class { pub prime_requisites: Vec, #[serde(default)] pub npc_ability_score_modifiers: HashMap, + pub chances_for_magic: Vec, } lazy_static! { -- cgit v1.2.3