Creature Roll Fix - 0.3.7
This commit is contained in:
@@ -359,6 +359,8 @@ export class MothershipActor extends Actor {
|
||||
r._total = 0;
|
||||
}
|
||||
|
||||
console.log(r);
|
||||
|
||||
if (a._total == 100) {
|
||||
//a.results[0] = 0;
|
||||
a._total = 0;
|
||||
@@ -385,6 +387,14 @@ export class MothershipActor extends Actor {
|
||||
|
||||
if (attribute.mod != 0) mod += attribute.mod;
|
||||
console.log("Bonus: " + mod);
|
||||
|
||||
|
||||
|
||||
|
||||
if(isNaN(mod)) mod = 0;
|
||||
|
||||
console.log("Bonus: " + mod);
|
||||
|
||||
let targetValue = attribute.value + mod + (item == "" ? 0 : parseInt(bonus));
|
||||
|
||||
let critical = false;
|
||||
|
||||
+4
-1
@@ -106,7 +106,10 @@ Hooks.on("preCreateActor", (document, createData, options, userId) => {
|
||||
})
|
||||
|
||||
Hooks.on('renderSidebarTab', async (app, html) => {
|
||||
if (app.options.id == "actors") {
|
||||
console.log(app);
|
||||
console.log(app.options.id);
|
||||
if (app.options.id == "actors" || app.title == "Actors Directory") {
|
||||
console.log("testing~");
|
||||
let button = $(`<button class="import-json"><i class="fas fa-file-import"></i> Import JSON</button>`);
|
||||
button.click(function () {
|
||||
d.render(true);
|
||||
|
||||
@@ -1 +1 @@
|
||||
MANIFEST-000008
|
||||
MANIFEST-000016
|
||||
|
||||
+3
-3
@@ -1,3 +1,3 @@
|
||||
2023/05/31-18:27:09.501 c860 Recovering log #7
|
||||
2023/05/31-18:27:09.527 c860 Delete type=0 #7
|
||||
2023/05/31-18:27:09.528 c860 Delete type=3 #6
|
||||
2023/06/05-20:11:24.194 c640 Recovering log #15
|
||||
2023/06/05-20:11:24.208 c640 Delete type=0 #15
|
||||
2023/06/05-20:11:24.208 c640 Delete type=3 #14
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
2023/05/28-21:57:09.442 8818 Recovering log #4
|
||||
2023/05/28-21:57:09.478 8818 Delete type=0 #4
|
||||
2023/05/28-21:57:09.479 8818 Delete type=3 #2
|
||||
2023/06/01-07:43:44.537 ca04 Recovering log #12
|
||||
2023/06/01-07:43:44.550 ca04 Delete type=0 #12
|
||||
2023/06/01-07:43:44.550 ca04 Delete type=3 #10
|
||||
|
||||
Binary file not shown.
+1
-1
@@ -2,7 +2,7 @@
|
||||
"id": "mosh",
|
||||
"title": "MoSh - Unofficial Mothership",
|
||||
"description": "The unofficial Mothership system for FoundryVTT.",
|
||||
"version": "0.3.6",
|
||||
"version": "0.3.7",
|
||||
"esmodules": [
|
||||
"module/mosh.js"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user