Merge remote-tracking branch 'upstream/master'
						commit
						7d19b51d60
					
				
							
								
								
									
										40
									
								
								bin/gendb.py
								
								
								
								
							
							
						
						
									
										40
									
								
								bin/gendb.py
								
								
								
								
							|  | @ -49,7 +49,7 @@ def main(): | ||||||
|         print("{}".format(e)) |         print("{}".format(e)) | ||||||
| 
 | 
 | ||||||
|     # Load in the yaml data |     # Load in the yaml data | ||||||
|     with open('basics.yaml') as yl: |     with open('basics.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     # call the functions to input to SQL |     # call the functions to input to SQL | ||||||
|     do_abilityscore(data['abilityscore'], conn) |     do_abilityscore(data['abilityscore'], conn) | ||||||
|  | @ -62,96 +62,96 @@ def main(): | ||||||
|     do_weaponcategory(data['weaponcategory'], conn) |     do_weaponcategory(data['weaponcategory'], conn) | ||||||
| 
 | 
 | ||||||
|     # move on to traits |     # move on to traits | ||||||
|     with open('traits.yaml') as yl: |     with open('traits.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_traits(data, conn)  # does both trait types and traits |     do_traits(data, conn)  # does both trait types and traits | ||||||
| 
 | 
 | ||||||
|     # move on to sources |     # move on to sources | ||||||
|     with open('sources.yaml') as yl: |     with open('sources.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_sources(data, conn) |     do_sources(data, conn) | ||||||
|     do_source_entry_table(conn) |     do_source_entry_table(conn) | ||||||
| 
 | 
 | ||||||
|     # move on to senses |     # move on to senses | ||||||
|     with open('senses.yaml') as yl: |     with open('senses.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_senses(data, conn) |     do_senses(data, conn) | ||||||
| 
 | 
 | ||||||
|     # move on to skills |     # move on to skills | ||||||
|     with open('skills.yaml') as yl: |     with open('skills.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_skills(data, conn) |     do_skills(data, conn) | ||||||
| 
 | 
 | ||||||
|     # move on to damagecategory and damagetype |     # move on to damagecategory and damagetype | ||||||
|     with open('damage.yaml') as yl: |     with open('damage.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_damage(data, conn) |     do_damage(data, conn) | ||||||
| 
 | 
 | ||||||
|     # move on to conditions |     # move on to conditions | ||||||
|     with open('conditions.yaml') as yl: |     with open('conditions.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_conditions(data, conn) |     do_conditions(data, conn) | ||||||
| 
 | 
 | ||||||
|     # move on to backgrounds |     # move on to backgrounds | ||||||
|     with open('backgrounds.yaml') as yl: |     with open('backgrounds.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_backgrounds(data, conn) |     do_backgrounds(data, conn) | ||||||
| 
 | 
 | ||||||
|     # move on to bulks |     # move on to bulks | ||||||
|     with open('bulks.yaml') as yl: |     with open('bulks.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_bulks(data, conn) |     do_bulks(data, conn) | ||||||
| 
 | 
 | ||||||
|     # move on to langs |     # move on to langs | ||||||
|     with open('langs.yaml') as yl: |     with open('langs.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_langs(data, conn) |     do_langs(data, conn) | ||||||
| 
 | 
 | ||||||
|     # move on to actions |     # move on to actions | ||||||
|     with open('actions.yaml') as yl: |     with open('actions.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_actions(data, conn) |     do_actions(data, conn) | ||||||
| 
 | 
 | ||||||
|     # move on to spells |     # move on to spells | ||||||
|     # TODO do spells once data is proofread |     # TODO do spells once data is proofread | ||||||
|     with open('spells.yaml') as yl: |     with open('spells.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_spells(data, conn) |     do_spells(data, conn) | ||||||
| 
 | 
 | ||||||
|     # move on to requirements |     # move on to requirements | ||||||
|     with open('requirements.yaml') as yl: |     with open('requirements.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_requirements(data, conn) |     do_requirements(data, conn) | ||||||
| 
 | 
 | ||||||
|     # move on to triggers |     # move on to triggers | ||||||
|     with open('triggers.yaml') as yl: |     with open('triggers.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_triggers(data, conn) |     do_triggers(data, conn) | ||||||
| 
 | 
 | ||||||
|     # move on to armor |     # move on to armor | ||||||
|     with open('armor.yaml') as yl: |     with open('armor.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_armor(data, conn) |     do_armor(data, conn) | ||||||
| 
 | 
 | ||||||
|     # move on to ammo |     # move on to ammo | ||||||
|     with open('ammunition.yaml') as yl: |     with open('ammunition.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_ammo(data, conn) |     do_ammo(data, conn) | ||||||
| 
 | 
 | ||||||
|     with open('gear.yaml') as yl: |     with open('gear.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_gear(data, conn) |     do_gear(data, conn) | ||||||
| 
 | 
 | ||||||
|     with open('feats.yaml') as yl: |     with open('feats.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_feats(data, conn) |     do_feats(data, conn) | ||||||
| 
 | 
 | ||||||
|     with open('ancestriesheritages.yaml') as yl: |     with open('ancestriesheritages.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_ancestries(data, conn) |     do_ancestries(data, conn) | ||||||
| 
 | 
 | ||||||
|     # Must be called after feats are loaded |     # Must be called after feats are loaded | ||||||
|     with open('ancestriesheritages.yaml') as yl: |     with open('ancestriesheritages.yaml', encoding='utf-8') as yl: | ||||||
|         data = yaml.full_load(yl) |         data = yaml.full_load(yl) | ||||||
|     do_heritages(data, conn) |     do_heritages(data, conn) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
							
								
								
									
										259
									
								
								data/basics.yaml
								
								
								
								
							
							
						
						
									
										259
									
								
								data/basics.yaml
								
								
								
								
							|  | @ -1,135 +1,140 @@ | ||||||
| abilityscore: | abilityscore: | ||||||
| - flag_rep: 1 |   - flag_rep: 1 | ||||||
|   long_name: Strength |     long_name: Strength | ||||||
|   short_name: STR |     short_name: STR | ||||||
| - flag_rep: 2 |   - flag_rep: 2 | ||||||
|   long_name: Dexterity |     long_name: Dexterity | ||||||
|   short_name: DEX |     short_name: DEX | ||||||
| - flag_rep: 4 |   - flag_rep: 4 | ||||||
|   long_name: Constitution |     long_name: Constitution | ||||||
|   short_name: CON |     short_name: CON | ||||||
| - flag_rep: 8 |   - flag_rep: 8 | ||||||
|   long_name: Intelligence |     long_name: Intelligence | ||||||
|   short_name: INT |     short_name: INT | ||||||
| - flag_rep: 16 |   - flag_rep: 16 | ||||||
|   long_name: Wisdom |     long_name: Wisdom | ||||||
|   short_name: WIS |     short_name: WIS | ||||||
| - flag_rep: 32 |   - flag_rep: 32 | ||||||
|   long_name: Charisma |     long_name: Charisma | ||||||
|   short_name: CHA |     short_name: CHA | ||||||
| - flag_rep: 64 |   - flag_rep: 64 | ||||||
|   long_name: Free 1 |     long_name: Free 1 | ||||||
|   short_name: Free1 |     short_name: Free1 | ||||||
| - flag_rep: 128 |   - flag_rep: 128 | ||||||
|   long_name: Free 2 |     long_name: Free 2 | ||||||
|   short_name: Free2 |     short_name: Free2 | ||||||
| actioncost: | actioncost: | ||||||
| - abbr: 1 |   - abbr: 1 | ||||||
|   name: Single Action |     name: Single Action | ||||||
| - abbr: 2 |   - abbr: 2 | ||||||
|   name: Two Actions |     name: Two Actions | ||||||
| - abbr: 3 |   - abbr: 3 | ||||||
|   name: Three Actions |     name: Three Actions | ||||||
| - abbr: F |   - abbr: F | ||||||
|   name: Free Action |     name: Free Action | ||||||
| - abbr: R |   - abbr: R | ||||||
|   name: Reaction |     name: Reaction | ||||||
| - abbr: V |   - abbr: V | ||||||
|   name: Varies |     name: Varies | ||||||
| - abbr: 1m |   - abbr: 1m | ||||||
|   name: 1 minute |     name: 1 minute | ||||||
| - abbr: 10m |   - abbr: 10m | ||||||
|   name: 10 minutes |     name: 10 minutes | ||||||
| - abbr: 1h |   - abbr: 1h | ||||||
|   name: 1 hour |     name: 1 hour | ||||||
| alignment: | alignment: | ||||||
| - abbr: LG |   - abbr: LG | ||||||
|   name: Lawful Good |     name: Lawful Good | ||||||
| - abbr: NG |   - abbr: NG | ||||||
|   name: Neutral Good |     name: Neutral Good | ||||||
| - abbr: CG |   - abbr: CG | ||||||
|   name: Chaotic Good |     name: Chaotic Good | ||||||
| - abbr: LN |   - abbr: LN | ||||||
|   name: Lawful Neutral |     name: Lawful Neutral | ||||||
| - abbr: N |   - abbr: N | ||||||
|   name: True Neutral |     name: True Neutral | ||||||
| - abbr: CN |   - abbr: CN | ||||||
|   name: Chaotic Neutral |     name: Chaotic Neutral | ||||||
| - abbr: LE |   - abbr: LE | ||||||
|   name: Lawful Evil |     name: Lawful Evil | ||||||
| - abbr: NE |   - abbr: NE | ||||||
|   name: Neutral Evil |     name: Neutral Evil | ||||||
| - abbr: CE |   - abbr: CE | ||||||
|   name: Chaotic Evil |     name: Chaotic Evil | ||||||
| frequency: | frequency: | ||||||
| - once per round |   - once per round | ||||||
| - once per turn |   - once per turn | ||||||
| - once per minute |   - once per minute | ||||||
| - once every 10 minutes |   - once every 10 minutes | ||||||
| - once per hour |   - once per hour | ||||||
| - once per day |   - once per day | ||||||
| lang_rarity: | lang_rarity: | ||||||
| - Common |   - Common | ||||||
| - Uncommon |   - Uncommon | ||||||
| - Secret |   - Secret | ||||||
| movement: | movement: | ||||||
| - Air Walk (constant) |   - Air Walk (constant) | ||||||
| - Burrow |   - Burrow | ||||||
| - Burrow (sand only) |   - Burrow (sand only) | ||||||
| - Burrow (snow only) |   - Burrow (snow only) | ||||||
| - Can't Move |   - Can't Move | ||||||
| - Climb |   - Climb | ||||||
| - Climb Stone |   - Climb Stone | ||||||
| - Cloud Walk |   - Cloud Walk | ||||||
| - Compression |   - Compression | ||||||
| - Earth Glide |   - Earth Glide | ||||||
| - Fly |   - Fly | ||||||
| - Fly (from fly) |   - Fly (from fly) | ||||||
| - Freedom of Movement (constant) |   - Freedom of Movement (constant) | ||||||
| - Glide |   - Glide | ||||||
| - Ice Climb |   - Ice Climb | ||||||
| - Ice Stride |   - Ice Stride | ||||||
| - Land |   - Land | ||||||
| - Magma Swim |   - Magma Swim | ||||||
| - Powerful Jumper |   - Powerful Jumper | ||||||
| - Sand Glide |   - Sand Glide | ||||||
| - Spider Climb (constant) |   - Spider Climb (constant) | ||||||
| - Suction |   - Suction | ||||||
| - Swim |   - Swim | ||||||
| - Swamp Stride |   - Swamp Stride | ||||||
| - Swiftness |   - Swiftness | ||||||
| - Trickster's Step |   - Trickster's Step | ||||||
| - Trackless Step |   - Trackless Step | ||||||
| - Unstoppable Burrow |   - Unstoppable Burrow | ||||||
| - Walk in Shadow |   - Walk in Shadow | ||||||
| - Woodland Stride |   - Woodland Stride | ||||||
| size: | size: | ||||||
| - name: Tiny |   - name: Tiny | ||||||
|   reach_long_ft: 0 |     reach_long_ft: 0 | ||||||
|   reach_tall_ft: 0 |     reach_tall_ft: 0 | ||||||
|   space_in_ft: 4 |     space_in_ft: 4 | ||||||
| - name: Small |   - name: Small | ||||||
|   reach_long_ft: 5 |     reach_long_ft: 5 | ||||||
|   reach_tall_ft: 5 |     reach_tall_ft: 5 | ||||||
|   space_in_ft: 5 |     space_in_ft: 5 | ||||||
| - name: Medium |   - name: Medium | ||||||
|   reach_long_ft: 5 |     reach_long_ft: 5 | ||||||
|   reach_tall_ft: 5 |     reach_tall_ft: 5 | ||||||
|   space_in_ft: 5 |     space_in_ft: 5 | ||||||
| - name: Large |   - name: Large | ||||||
|   reach_long_ft: 5 |     reach_long_ft: 5 | ||||||
|   reach_tall_ft: 10 |     reach_tall_ft: 10 | ||||||
|   space_in_ft: 10 |     space_in_ft: 10 | ||||||
| - name: Huge |   - name: Huge | ||||||
|   reach_long_ft: 10 |     reach_long_ft: 10 | ||||||
|   reach_tall_ft: 15 |     reach_tall_ft: 15 | ||||||
|   space_in_ft: 15 |     space_in_ft: 15 | ||||||
| - name: Gargantuan |   - name: Gargantuan | ||||||
|   reach_long_ft: 15 |     reach_long_ft: 15 | ||||||
|   reach_tall_ft: 20 |     reach_tall_ft: 20 | ||||||
|   space_in_ft: 20 |     space_in_ft: 20 | ||||||
| weaponcategory: | weaponcategory: | ||||||
| - Unarmed |   - Unarmed | ||||||
| - Simple |   - Simple | ||||||
| - Martial |   - Martial | ||||||
| - Advanced |   - Advanced | ||||||
|  | bonutypes: | ||||||
|  |   - Proficiency | ||||||
|  |   - Circumstance | ||||||
|  |   - Status | ||||||
|  |   - Item | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue