Code Monkey home page Code Monkey logo

pfsb's People

Contributors

frozenmustelid avatar

Stargazers

 avatar

Forkers

skizzerz

pfsb's Issues

Program rejects construct sizes smaller than Small

The code that calculates a construct's size-based bonus HP has a default case that assumes that any size smaller than Small is a typo. Since the program always thinks that any value for a creature size not accounted for is a mistake, the program will exit.

To reproduce:
Start PFSB
Follow the prompts
Tell the program the creature is a construct
Tell the program the size is tiny, fine, or diminutive
Follow prompts until the program exits. No file will be written, because the program thinks that your creature failed a sanity check.

Missing license info

The OGL isn’t a software license. While it covers much of the content/data you are using, you should have a license for the source code itself as well.

Program produces incorrect HP values

Some inputs produce correct values, some do not. Looking at the function, it's clear that the appropriate calculations are barely even close to what the program is actually doing. A quick glance at the function tells me that low-HD monsters should be more likely to be correct than high-HD ones, and that Undead are likely completely and utterly screwed. Either way, I should stop programming at 6AM.

Until this gets fixed, use a text editor to manually correct the information in the HTML file. Based on the 1 test I did, it seems like the breakdown is correct, though I wouldn't trust it.

Odd-numbered ability scores less than 10 produce an ability modifier that's too high

The code that creates the ability score modifiers produces incorrect values for odd-numbered scores under 10. For example, 9 CON will be calculated as a +0 mod, 7 WIS will be calculated as a -1 mod, etc.

To reproduce:
Start PFSB
Follow the prompts until you reach the part where you enter ability scores
Give the creature a number less than 10 in any ability score. The more easily visible (like DEX), the better. Note that CON may not be the best choice, as the current version (0.1) of the program calculates HP incorrectly.
Follow prompts until the program exits.
Manually calculate the determined values (example: saves) from the independent values (for the saves example, base saves + ability mod) of the odd-numbered abilities lower than 10. Compare to the output file of PFSB.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.