updating cleanyaml and cleaning up feats and requirements
							parent
							
								
									5ffd104c6c
								
							
						
					
					
						commit
						7343aed690
					
				| 
						 | 
					@ -17,6 +17,12 @@ def main():
 | 
				
			||||||
        print("Doing: {}".format(x))
 | 
					        print("Doing: {}".format(x))
 | 
				
			||||||
        with open(x, 'r') as r:
 | 
					        with open(x, 'r') as r:
 | 
				
			||||||
            data = yaml.full_load(r)
 | 
					            data = yaml.full_load(r)
 | 
				
			||||||
 | 
					            if x == "feats.yaml":
 | 
				
			||||||
 | 
					                for i in data['feat']:
 | 
				
			||||||
 | 
					                    if i['requirement'] != None:
 | 
				
			||||||
 | 
					                        print("Before: {}".format(i['requirement']))
 | 
				
			||||||
 | 
					                        i['requirement'] = i['requirement'].replace('’', "'")
 | 
				
			||||||
 | 
					                        print("After: {}".format(i['requirement']))
 | 
				
			||||||
        final = yaml.safe_dump(data, allow_unicode=True)
 | 
					        final = yaml.safe_dump(data, allow_unicode=True)
 | 
				
			||||||
        with open(x, 'w') as f:
 | 
					        with open(x, 'w') as f:
 | 
				
			||||||
            f.write(final)
 | 
					            f.write(final)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| 
						 | 
					@ -75,4 +75,5 @@ requirement:
 | 
				
			||||||
- You have an unexpended spell slot you could use to cast the triggered spell.
 | 
					- You have an unexpended spell slot you could use to cast the triggered spell.
 | 
				
			||||||
- Your most recent action was to cast a non-cantrip spell.
 | 
					- Your most recent action was to cast a non-cantrip spell.
 | 
				
			||||||
- The last action you used was Drain Bonded Item.
 | 
					- The last action you used was Drain Bonded Item.
 | 
				
			||||||
- You have a focus pool, and you have spent at least 1 Focus Point since you last regained any Focus Points.
 | 
					- You have a focus pool, and you have spent at least 1 Focus Point since you last
 | 
				
			||||||
 | 
					  regained any Focus Points.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue