From dab311dcc6879591acd1e9cbcb531594798b1ade Mon Sep 17 00:00:00 2001 From: James R Miller Date: Thu, 20 Feb 2020 20:10:00 -0600 Subject: [PATCH] new file: senses.yaml --- data/yaml/deprecated/sensesyamltmp.py | 53 ++++++ data/yaml/senses.yaml | 244 ++++++++++++++++++++++++++ 2 files changed, 297 insertions(+) create mode 100644 data/yaml/deprecated/sensesyamltmp.py create mode 100644 data/yaml/senses.yaml diff --git a/data/yaml/deprecated/sensesyamltmp.py b/data/yaml/deprecated/sensesyamltmp.py new file mode 100644 index 0000000..9a39655 --- /dev/null +++ b/data/yaml/deprecated/sensesyamltmp.py @@ -0,0 +1,53 @@ +import yaml +import sqlite3 + + +def main(): + q = "SELECT short_name, description, sources_pages FROM senses" + + conn = sqlite3.connect('../../pf2.db') + + c = conn.cursor() + + c.execute(q) + data = c.fetchall() + + datalist = [] + for i in data: + # print(i) + print(i[2]) + if i[2] != "TODO": + print("We got an int") + d = { + 'name': i[0], + 'descr': i[1], + 'source': { + 'abbr': 'CRB', + 'page_start': int(i[2]), + 'page_stop': int(i[2]) + } + } + datalist.append(d) + else: + d = { + 'name': i[0], + 'descr': i[1], + 'source': { + 'abbr': 'CRB', + 'page_start': 9999999, + 'page_stop': 9999999, + 'comment': "TODO fix the source page start and stop" + } + } + datalist.append(d) + + + tmpd = {'senses': datalist} + final = yaml.safe_dump(tmpd, allow_unicode=True) + + with open('tmp-senses.yaml', 'w') as f: + f.write(final) + + +if __name__ == "__main__": + main() diff --git a/data/yaml/senses.yaml b/data/yaml/senses.yaml new file mode 100644 index 0000000..b363d9b --- /dev/null +++ b/data/yaml/senses.yaml @@ -0,0 +1,244 @@ +senses: +- descr: A creature with darkvision or greater darkvision can see perfectly well in + areas of darkness and dim light, though such vision is in black and white only. + Some forms of magical darkness, such as a 4th-level *darkness* spell, block normal + darkvision. A creature with greater darkvision, however, can see through even + these forms of magical darkness. + name: Darkvision + source: + abbr: CRB + page_start: 465 + page_stop: 465 +- descr: You can see in dim light as though it were bright light, and you ignore the + concealed condition due to dim light. + name: Low-Light Vision + source: + abbr: CRB + page_start: 465 + page_stop: 465 +- descr: Your eyes are sharp, allowing you to make out small details about concealed + or even invisible creatures that others might miss. You gain a +2 circumstance + bonus when using the Seek action to find hidden or undetected creatures within + 30 feet of you. When you target an opponent that is concealed from you or hidden + from you, reduce the DC of the flat check to 3 for a concealed target or 9 for + a hidden one. + name: Keen Eyes + source: + abbr: CRB + page_start: 51 + page_stop: 51 +- descr: No special vision. + name: None + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: You can see perfectly in smoky conditions + name: Smoke Vision + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: This monster can see in all directions simultaneously, and therefore can’t + be flanked. + name: All-Around Vision + source: + abbr: CRB + page_start: 342 + page_stop: 342 +- descr: This creature can see perfectly well in snowy conditions. this creature does + not suffer any penalties to Perception checks while in snow. + name: Snow Vision + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: TODO (can not find any definition ref:https://2e.aonprd.com/Monsters.aspx?ID=249) + name: Manifold Vision + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: A creature with darkvision or greater darkvision can see perfectly well in + areas of darkness and dim light, though such vision is in black and white only. + Some forms of magical darkness, such as a 4th-level *darkness* spell, block normal + darkvision. A creature with greater darkvision, however, can see through even + these forms of magical darkness. + name: Greater Darkvision + source: + abbr: CRB + page_start: 465 + page_stop: 465 +- descr: TODO Bestiary 1 pg 344 + name: Scent + source: + abbr: CRB + page_start: 465 + page_stop: 465 +- descr: You can perceive the world by creating high-pitched noises and listening + to their echoes. This gives you blindsight to a range of 40 feet. + name: Echolocation + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: TODO CRB 465 or Bestiary 344 + name: Tremorsense + source: + abbr: CRB + page_start: 465 + page_stop: 465 +- descr: Creatures with light blindness are blinded for 1 round if exposed to bright + light, such as sunlight or the Daylight spell. Such creatures are dazzled as long + as they remain in areas of bright light. + name: Lightblindness + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: You automatically detect and locate conscious creatures within 60 feet, as + if you possessed the blindsight ability. + name: Thoughtsense + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: This creature has the scent universal monster ability, but only for purposes + of detecting and pinpointing injured creatures (below full hit points). Creatures + below half their full hit points or suffering bleed damage are considered strong + scents for this ability. + name: Bloodscent + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: TODO Bestiary 343 + name: Lifesense + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: TODO find definiton for plaguesense. Senses sickness?? + name: Plaguesense + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: This creature can sense the presence of any crystals or gems within 30 feet + as if using the scent ability. + name: Crystalsense + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: This creature can see perfectly in foggy conditions + name: Fogvision + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: This sense allows a monster to feel vibrations caused by movement through + a liquid. It’s an imprecise sense with a limited range (listed in the ability). + Wavesense functions only if monster and the subject are in the same body of liquid, + and only if the subject is moving through the liquid. + name: Wavesense + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: TODO + name: Sporesight + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: This creature senses vibrations in the air. + name: Windsense + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: TODO + name: Motionsense + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: This creature has the scent universal monster ability but it can smell only + metals using it. + name: Metalscent + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: Hungersense allows the gimmerling to sense creatures that require food to + live. + name: Hungersense + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: A voidworm can anticipate the most likely presence of a creature through + a supernatural insight into chaotic probabilities and chance. This grants it the + ability to sense creatures within the listed range. A creature under the effects + of nondetection or that is otherwise shielded from divinations and predictions + cannot be noticed via entropy sense. + name: Entropysense + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: TODO + name: Websense + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: Heatsight is a precise sense that sees heat signatures. + name: Heatsight + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: This creature has scent against creatures whose nature reflects it's sin. + For example, wrathful sinspawn can scent creatures using rage effects. The GM + should adjudicate what creatures a particular sinspawn can scent. + name: Sinscent + source: + abbr: CRB + comment: TODO fix the source page start and stop + page_start: 9999999 + page_stop: 9999999 +- descr: null + name: Detect Alignment (chaotic only) + source: + abbr: CRB + page_start: 8 + page_stop: 8 +- descr: null + name: Locate Inevitable + source: + abbr: CRB + page_start: 8 + page_stop: 8