Prerequisites for Armor and Shield Proficiencies

From PCGen Wiki
Revision as of 03:18, 7 November 2008 by James (talk | contribs)
Jump to: navigation, search

Assume two pieces of Equipment:

  • Chainmail TYPE:Armor.Medium PROFICIENCY:ARMOR|Chainmail
  • Mithril Chainmail TYPE:Armor.Light PROFICIENCY:ARMOR|Chainmail

1. What armor is a character proficient in?

Character has AUTO:ARMORPROF ARMORTYPE=Light Character has AUTO:ARMORPROF Chainmail Character has AUTO:ARMORPROF ARMORTYPE=Light,ARMORTYPE=Medium
Is the character proficient with Chainmail? No Yes Yes
Is the character proficient with Mithril Chainmail? Yes Yes Yes

2. How should a PREARMORPROF:1,TYPE=Light in an item be interpreted?

Interpretation Character has AUTO:ARMORPROF ARMORTYPE=Light Character has AUTO:ARMORPROF Chainmail Character has AUTO:ARMORPROF ARMORTYPE=Light,ARMORTYPE=Medium
a) TYPE= is a TYPE on the ArmorProf only (non-sensical, given structure of our data) Character does NOT qualify for Item Character does NOT qualify for Item Character does NOT qualify for Item
b) TYPE= is a TYPE on the ArmorProf or matches ARMORTYPE= in AUTO:ARMORPROF Character qualifies for Item Character does NOT qualify for Item Character qualifies for Item
c) TYPE= is a TYPE on the Armor, e.g. ARMORTYPE= Character qualifies for Item Character qualifies for Item Character qualifies for Item
d) TYPE= is a TYPE on the Armor, e.g. ARMORTYPE=, BUT only tests items where Proficiency Key == Equipment Key Character qualifies for Item Character does NOT qualify for Item Character qualifies for Item


3. How should a PREARMORPROF of a specific name be interpreted?

Interpretation Character has AUTO:ARMORPROF ARMORTYPE=Light Character has AUTO:ARMORPROF Chainmail Character has AUTO:ARMORPROF ARMORTYPE=Light,ARMORTYPE=Medium
Item has PREARMORPROF:1,Chainmail a) Primitive item is an ArmorProf Character does NOT qualify for item (ArmorProf has no TYPE in ArmorProf file) Character qualifies for Item Character does NOT qualify for item (ArmorProf has no TYPE in ArmorProf file)
Item has PREARMORPROF:1,Mithril Chainmail a) Primitive item is an ArmorProf Should fail on load? Should fail on load? Should fail on load?
Item has PREARMORPROF:1,Chainmail b) Primitive item is an ArmorProf or Equipment where ArmorProf Key == Equipment Key Character does NOT qualify for Item Character qualifies for Item Character qualifies for Item
Item has PREARMORPROF:1,Mithril Chainmail b) Primitive item is an ArmorProf or Equipment where ArmorProf Key == Equipment Key Should fail on load? Should fail on load? Should fail on load?
Item has PREARMORPROF:1,Chainmail c) Primitive item is Equipment, test effectively can be thought of as PREPROFICIENTWITHARMOR: Character does NOT qualify for Item Character qualifies for Item Character qualifies for Item
Item has PREARMORPROF:1,Mithril Chainmail c) Primitive item is Equipment, test effectively can be thought of as PREPROFICIENTWITHARMOR: Character qualifies for Item Character qualifies for item Character qualifies for Item