Giter Site home page Giter Site logo

emblem20's People

Contributors

missing-q avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

emblem20's Issues

HPCurrC is not defined when using Rally Skills

The error message I received was:
ReferenceError: HPCurrC is not defined
at skillMain (apiscript.js:4064:44)
at Skill (apiscript.js:4132:17)
at apiscript.js:4136:9
at eval (eval at (/home/node/d20-api-server/api.js:151:1), :65:16)
at Object.publish (eval at (/home/node/d20-api-server/api.js:151:1), :70:8)
at /home/node/d20-api-server/api.js:1634:12
at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560
at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147)
at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546)
at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489)
at Zd.Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425)
at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:111:400

Skill above 100% always give 2

When you level up and have the percentage above 100% it always gives +2. Looking at the code, on lines 1761/1762, you check if it's greater then 100 then you check if d100 is less then it but you haven't subtracted 100 yet, so it always passes.

Detecting magic weapons doesn't work

if ( (PhysWepTypes.includes(WTypeB))||(PhysWeps.includes(WNameB)) ){
DmgtypeB = "Physical";
DmgB = (StrB + MtB) - DefA;
} else if ( (MWepTypes.includes(WTypeB))||(MagWeps.includes(WNameB)) ){
DmgtypeB = "Magical";
DmgB = (MagB + MtB) - ResA;

as an example for the code above, If you had a flame shuriken, it would first check that it is a shuriken and make it a physical weapon then it would skip over checking that it name is "Flame Shuriken" because the first if statement was true.

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.