missing-q / emblem20 Goto Github PK
View Code? Open in Web Editor NEWA Fire Emblem automated tabletop system for Roll20- https://missing-q.github.io/emblem20/
License: GNU General Public License v2.0
A Fire Emblem automated tabletop system for Roll20- https://missing-q.github.io/emblem20/
License: GNU General Public License v2.0
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
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.
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.
I was doing some testing and I realized that when a character would level up he would never get a point in res even at 100%. I tested it with other attributes but the rest of them works as intended.
emblem20/Basic Package/sheet.html
Line 3927 in a93e60d
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.