SBT-Megdamage Menu

This commit is contained in:
Futil
2024-01-23 14:06:40 -07:00
parent de935a4a56
commit 28006cfa14
50 changed files with 365 additions and 142 deletions
+37 -1
View File
@@ -560,6 +560,37 @@ p {
padding: 10px;
}
.button-black:hover,
.button-black:focus{
/* color: #ffffff; */
text-shadow: 0 0 10px rgb(112, 112, 112);
box-shadow: 0 0 10px 0px #9e9e9e;
background: #202020;
cursor: pointer;
}
.mosh .button-grey {
font-weight: bold;
font-size: 16px;
color: white;
margin-left: 0px;
background: grey;
border-radius: 21px;
text-align: center;
overflow: hidden;
padding: 10px;
}
.button-grey:hover,
.button-grey:focus{
/* color: #494949; */
text-shadow: 0 0 10px rgb(112, 112, 112);
box-shadow: 0 0 5px 0px #b9b9b9;
background: rgb(100, 100, 100);
cursor: pointer;
/* border: 1px solid #ffffff; */
}
.mosh .button-white {
font-weight: bold;
font-size: 16px;
@@ -659,6 +690,11 @@ p {
/* height: auto; */
}
.mosh .sbt-megadamage-menu {
padding: 15px;
/* font-size: 15px; */
}
.mosh .invert-title{
mix-blend-mode: difference;
}
@@ -1026,7 +1062,7 @@ p {
margin: -0.15em;
/* padding: 9px; */
border: 2px solid #111;
border-radius: 0.8em;
border-radius: 15px;
font-size: 11pt;
color: white;
font-weight: 500;
+47 -40
View File
@@ -5,6 +5,7 @@
*/
import { DLShipDeckplan } from "../windows/ship-deckplan.js";
import { DLShipMacros } from "../windows/ship-macros.js";
import { DLShipMegaDamage } from "../windows/ship-megadamage.js";
import { DLShipSetup } from "../windows/ship-setup.js";
export class MothershipShipSheetSBT extends ActorSheet {
@@ -45,6 +46,14 @@ export class MothershipShipSheetSBT extends ActorSheet {
}).render(true);
}
_onOpenMegadamage(event) {
event.preventDefault();
new DLShipMegaDamage(this.actor, {
top: this.position.top + 40,
left: this.position.left + (this.position.width - 400) / 2
}).render(true);
}
/* -------------------------------------------- */
/** @override */
@@ -93,8 +102,6 @@ export class MothershipShipSheetSBT extends ActorSheet {
this._prepareMegadamage(data);
console.log(this);
return data.data;
}
@@ -137,8 +144,6 @@ export class MothershipShipSheetSBT extends ActorSheet {
actorData.weapons = weapons;
actorData.cargo = cargo;
actorData.modules = modules;
console.log(sheetData);
}
async _prepareMegadamage(sheetData){
@@ -170,38 +175,35 @@ export class MothershipShipSheetSBT extends ActorSheet {
//get table data
let tableData = await game.packs.get(tableLocation).getDocument(tableId);
console.log(tableData);
let megadamageHTML = "";
// actorData.system.megadamage.hits = [1,5];
let entries = Array.from(tableData.results.entries());
let entries = tableData.results.entries();
//Prep Megadamage List
if(actorData.system.megadamage.hits.length > 0){
let index = 0;
for(const entry of entries){
let index = 0;
for(const entry of entries){
console.log(entry);
console.log(entry[1].text);
if (actorData.system.megadamage.hits.includes(index)){
megadamageHTML += `<i class="fas fa-circle megadamage-button rollable" data-key="${index}"></i> &nbsp`;
}
else{
megadamageHTML += `<i class="far fa-circle megadamage-button rollable" data-key="${index}"></i> &nbsp`;
// Megadamage - Only Active
if(index != 0 && actorData.system.megadamage.hits.includes(index)){
if(index != 0) megadamageHTML += `<i class="fa-solid fa-wrench megadamage-button rollable" data-key="${index}"></i> &nbsp`;
megadamageHTML += `${entry[1].text} <br/> <br/>`;
}
index++;
}
} else {
megadamageHTML += `<b>${index+1} |</b> ${entry[1].text} <br/> <br/>`;
index++;
megadamageHTML += entries[0][1].text + "<br/> <br/>";
}
await this.object.update({
"data.megadamage.html": megadamageHTML
});
console.log(tableData.results.entries());
// await this.object.update({
// "data.megadamage.hits": []
// });
}
@@ -213,26 +215,26 @@ export class MothershipShipSheetSBT extends ActorSheet {
if (!this.options.editable) return;
html.on('mousedown', '.megadamage-button', ev => {
const data = super.getData();
// html.on('mousedown', '.megadamage-button', ev => {
// const data = this.object;
const div = $(ev.currentTarget);
const targetKey = div.data("key");
console.log(targetKey);
// const div = $(ev.currentTarget);
// const targetKey = div.data("key");
// console.log(targetKey);
if(data.data.system.megadamage.hits.includes(targetKey)){
const index = data.data.system.megadamage.hits.indexOf(targetKey);
data.data.system.megadamage.hits.splice(index, 1);
} else {
data.data.system.megadamage.hits.push(targetKey);
}
// if(data.data.system.megadamage.hits.includes(targetKey)){
// const index = data.data.system.megadamage.hits.indexOf(targetKey);
// data.data.system.megadamage.hits.splice(index, 1);
// } else {
// data.data.system.megadamage.hits.push(targetKey);
// }
this.object.update({
"data.megadamage.hits": data.data.system.megadamage.hits
});
// this.object.update({
// "data.megadamage.hits": data.data.system.megadamage.hits
// });
this._prepareMegadamage(data);
});
// this._prepareMegadamage(data);
// });
// Create inventory item.
html.find('.item-create').click(this._onItemCreate.bind(this));
@@ -307,6 +309,10 @@ export class MothershipShipSheetSBT extends ActorSheet {
//Testing Setup Menu Button
html.find('.setup-menu-button').click(ev => this._onOpenSetup(ev));
//Megadamage Menu Button
html.find('.megadamage-menu-button').click(ev => this._onOpenMegadamage(ev));
html.on('mousedown', '.weapon-ammo', ev => {
const li = ev.currentTarget.closest(".item");
const item = duplicate(this.actor.getEmbeddedDocument("Item", li.dataset.itemId))
@@ -340,6 +346,7 @@ export class MothershipShipSheetSBT extends ActorSheet {
});
// Drag events for macros.
if (this.actor.isOwner) {
let handler = ev => this._onDragStart(ev);
+7 -9
View File
@@ -36,7 +36,6 @@ export class DLShipMacros extends BaseSheet {
*/
getData() {
const actor = this.object;
console.log(this);
return {
actor
@@ -71,8 +70,6 @@ export class DLShipMacros extends BaseSheet {
*/
async _updateObject(event, formData) {
console.log("Updating Object");
// await this.object.update({
// "data.stats.loyalty.enabled": true
// });
@@ -83,13 +80,14 @@ export class DLShipMacros extends BaseSheet {
// await this.object.updateEmbeddedEntity("OwnedItem", update);
this.object.update({
formData
});
console.log(this);
// await this.object.update({
// formData
// });
await this.object.sheet.render(true, {focus: false});
this.bringToTop();
// console.log(this);
// await this.object.sheet.render(true, {focus: false});
// this.bringToTop();
}
+140
View File
@@ -0,0 +1,140 @@
export class DLShipMegaDamage extends FormApplication {
static get defaultOptions() {
const options = super.defaultOptions;
options.id = 'sheet-modifiers';
options.classes = ["mosh", "sheet", "actor", "ship"];
options.template = 'systems/mosh/templates/dialogs/ship-megadamage-dialog.html';
options.width = 320;
options.height = 'auto';
options.resizeable = false;
return options;
}
/* -------------------------------------------- */
/**
* Add the Entity name into the window title
* @type {String}
*/
get title() {
return `${this.object.name}: Megadamage Effects`;
}
/* -------------------------------------------- */
/**
* Construct and return the data object used to render the HTML template for this form application.
* @return {Object}
*/
getData() {
const data = super.getData();
const actor = this.object;
this._prepareMegadamage(data);
return {
actor
};
}
async _prepareMegadamage(sheetData){
const actorData = sheetData.object;
//A script to return the data from a table.
let tableId = 'AqGWwoWXzijFs427';
let currentLocation = '';
let tableLocation = '';
//find where this table is located
//get current compendium
let compendium = game.packs;
//loop through each compendium
compendium.forEach(function(pack){
//is this a pack of rolltables?
if (pack.metadata.type === 'RollTable') {
//log where we are
currentLocation = pack.metadata.id;
//loop through each pack to find the right table
pack.index.forEach(function(table) {
//is this our table?
if (table._id === tableId) {
//grab the table location
tableLocation = currentLocation;
}
});
}
});
//get table data
let tableData = await game.packs.get(tableLocation).getDocument(tableId);
let entries = Array.from(tableData.results.entries());
// MEGADAMAGE SETTINGS MENU
let megadamageSettingsHTML = "";
let index = 0;
for(const entry of entries){
if(index != 0){
if (actorData.system.megadamage.hits.includes(index)){
megadamageSettingsHTML += `<i class="fas fa-circle megadamage-button rollable" data-key="${index}"></i> &nbsp`;
}
else{
megadamageSettingsHTML += `<i class="far fa-circle megadamage-button rollable" data-key="${index}"></i> &nbsp`;
}
megadamageSettingsHTML += `<b>${index} |</b> ${entry[1].text} <br/> <br/>`;
}
index++;
}
actorData.system.megadamage.menu.html = megadamageSettingsHTML;
// await this.object.update({
// "data.megadamage.menu.html": megadamageSettingsHTML
// });
}
/* -------------------------------------------- */
/** @override */
activateListeners(html) {
super.activateListeners(html);
html.on('mousedown', '.megadamage-button', ev => {
const data = this.object;
const div = $(ev.currentTarget);
const targetKey = div.data("key");
if(data.system.megadamage.hits.includes(targetKey)){
const index = data.system.megadamage.hits.indexOf(targetKey);
data.system.megadamage.hits.splice(index, 1);
} else {
data.system.megadamage.hits.push(targetKey);
}
this.object.update({
"data.megadamage.hits": data.system.megadamage.hits
});
this.render(true, {focus: true});
});
// Close Button
html.find('.close-button').click(ev => this.close());
}
/**
* This method is called upon form submission after form data is validated
* @param event {Event} The initial triggering submission event
* @param formData {Object} The object of validated form data with which to update the object
* @private
*/
async _updateObject(event, formData) {
// this.object.update({
// formData
// });
//await this.object.sheet.render(true, {focus: false});
}
}
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000030
MANIFEST-000034
+3 -3
View File
@@ -1,3 +1,3 @@
2024/01/23-08:31:09.636 5104 Recovering log #28
2024/01/23-08:31:09.660 5104 Delete type=0 #28
2024/01/23-08:31:09.660 5104 Delete type=3 #26
2024/01/23-13:07:43.685 3a24 Recovering log #32
2024/01/23-13:07:43.709 3a24 Delete type=0 #32
2024/01/23-13:07:43.709 3a24 Delete type=3 #30
+7 -7
View File
@@ -1,7 +1,7 @@
2024/01/22-19:59:18.951 809c Recovering log #24
2024/01/22-19:59:18.975 809c Delete type=0 #24
2024/01/22-19:59:18.976 809c Delete type=3 #22
2024/01/23-08:31:05.986 7e04 Level-0 table #29: started
2024/01/23-08:31:05.986 7e04 Level-0 table #29: 0 bytes OK
2024/01/23-08:31:05.996 7e04 Delete type=0 #27
2024/01/23-08:31:06.009 7e04 Manual compaction at level-0 from '!items!1r6ruvSdxn2bHHIk' @ 72057594037927935 : 1 .. '!items!zbKI2RCl5h3vowoy' @ 0 : 0; will stop at (end)
2024/01/23-08:31:09.636 5104 Recovering log #28
2024/01/23-08:31:09.660 5104 Delete type=0 #28
2024/01/23-08:31:09.660 5104 Delete type=3 #26
2024/01/23-13:07:39.562 7e04 Level-0 table #33: started
2024/01/23-13:07:39.562 7e04 Level-0 table #33: 0 bytes OK
2024/01/23-13:07:39.568 7e04 Delete type=0 #31
2024/01/23-13:07:39.569 7e04 Manual compaction at level-0 from '!items!1r6ruvSdxn2bHHIk' @ 72057594037927935 : 1 .. '!items!zbKI2RCl5h3vowoy' @ 0 : 0; will stop at (end)
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000030
MANIFEST-000034
+3 -3
View File
@@ -1,3 +1,3 @@
2024/01/23-08:31:09.577 1d1c Recovering log #28
2024/01/23-08:31:09.603 1d1c Delete type=0 #28
2024/01/23-08:31:09.603 1d1c Delete type=3 #26
2024/01/23-13:07:43.632 3a24 Recovering log #32
2024/01/23-13:07:43.653 3a24 Delete type=0 #32
2024/01/23-13:07:43.653 3a24 Delete type=3 #30
+7 -7
View File
@@ -1,7 +1,7 @@
2024/01/22-19:59:18.898 3a24 Recovering log #24
2024/01/22-19:59:18.921 3a24 Delete type=0 #24
2024/01/22-19:59:18.921 3a24 Delete type=3 #22
2024/01/23-08:31:05.970 7e04 Level-0 table #29: started
2024/01/23-08:31:05.970 7e04 Level-0 table #29: 0 bytes OK
2024/01/23-08:31:05.976 7e04 Delete type=0 #27
2024/01/23-08:31:05.986 7e04 Manual compaction at level-0 from '!items!0ZAwhewvLBwX3opf' @ 72057594037927935 : 1 .. '!items!z0avrplKe6M0RcXk' @ 0 : 0; will stop at (end)
2024/01/23-08:31:09.577 1d1c Recovering log #28
2024/01/23-08:31:09.603 1d1c Delete type=0 #28
2024/01/23-08:31:09.603 1d1c Delete type=3 #26
2024/01/23-13:07:39.495 7e04 Level-0 table #33: started
2024/01/23-13:07:39.495 7e04 Level-0 table #33: 0 bytes OK
2024/01/23-13:07:39.500 7e04 Delete type=0 #31
2024/01/23-13:07:39.524 7e04 Manual compaction at level-0 from '!items!0ZAwhewvLBwX3opf' @ 72057594037927935 : 1 .. '!items!z0avrplKe6M0RcXk' @ 0 : 0; will stop at (end)
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000030
MANIFEST-000034
+3 -3
View File
@@ -1,3 +1,3 @@
2024/01/23-08:31:09.640 3a24 Recovering log #28
2024/01/23-08:31:09.661 3a24 Delete type=0 #28
2024/01/23-08:31:09.661 3a24 Delete type=3 #26
2024/01/23-13:07:43.687 5104 Recovering log #32
2024/01/23-13:07:43.712 5104 Delete type=0 #32
2024/01/23-13:07:43.712 5104 Delete type=3 #30
+7 -7
View File
@@ -1,7 +1,7 @@
2024/01/22-19:59:18.953 1d1c Recovering log #24
2024/01/22-19:59:18.976 1d1c Delete type=0 #24
2024/01/22-19:59:18.976 1d1c Delete type=3 #22
2024/01/23-08:31:06.002 7e04 Level-0 table #29: started
2024/01/23-08:31:06.003 7e04 Level-0 table #29: 0 bytes OK
2024/01/23-08:31:06.009 7e04 Delete type=0 #27
2024/01/23-08:31:06.016 7e04 Manual compaction at level-0 from '!macros!2xRvRAixuocjCm40' @ 72057594037927935 : 1 .. '!macros!ilBclUmPwcd7aNQK' @ 0 : 0; will stop at (end)
2024/01/23-08:31:09.640 3a24 Recovering log #28
2024/01/23-08:31:09.661 3a24 Delete type=0 #28
2024/01/23-08:31:09.661 3a24 Delete type=3 #26
2024/01/23-13:07:39.578 7e04 Level-0 table #33: started
2024/01/23-13:07:39.578 7e04 Level-0 table #33: 0 bytes OK
2024/01/23-13:07:39.596 7e04 Delete type=0 #31
2024/01/23-13:07:39.615 7e04 Manual compaction at level-0 from '!macros!2xRvRAixuocjCm40' @ 72057594037927935 : 1 .. '!macros!ilBclUmPwcd7aNQK' @ 0 : 0; will stop at (end)
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000030
MANIFEST-000034
+3 -3
View File
@@ -1,3 +1,3 @@
2024/01/23-08:31:09.577 3a24 Recovering log #28
2024/01/23-08:31:09.603 3a24 Delete type=0 #28
2024/01/23-08:31:09.603 3a24 Delete type=3 #26
2024/01/23-13:07:43.632 809c Recovering log #32
2024/01/23-13:07:43.653 809c Delete type=0 #32
2024/01/23-13:07:43.653 809c Delete type=3 #30
+7 -7
View File
@@ -1,7 +1,7 @@
2024/01/22-19:59:18.898 809c Recovering log #24
2024/01/22-19:59:18.921 809c Delete type=0 #24
2024/01/22-19:59:18.921 809c Delete type=3 #22
2024/01/23-08:31:05.976 7e04 Level-0 table #29: started
2024/01/23-08:31:05.977 7e04 Level-0 table #29: 0 bytes OK
2024/01/23-08:31:05.986 7e04 Delete type=0 #27
2024/01/23-08:31:05.996 7e04 Manual compaction at level-0 from '!macros!2u4a5gEogtLd3XQz' @ 72057594037927935 : 1 .. '!macros!trU0DtBJvJCPddsQ' @ 0 : 0; will stop at (end)
2024/01/23-08:31:09.577 3a24 Recovering log #28
2024/01/23-08:31:09.603 3a24 Delete type=0 #28
2024/01/23-08:31:09.603 3a24 Delete type=3 #26
2024/01/23-13:07:39.489 7e04 Level-0 table #33: started
2024/01/23-13:07:39.489 7e04 Level-0 table #33: 0 bytes OK
2024/01/23-13:07:39.495 7e04 Delete type=0 #31
2024/01/23-13:07:39.524 7e04 Manual compaction at level-0 from '!macros!2u4a5gEogtLd3XQz' @ 72057594037927935 : 1 .. '!macros!trU0DtBJvJCPddsQ' @ 0 : 0; will stop at (end)
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000030
MANIFEST-000034
+3 -3
View File
@@ -1,3 +1,3 @@
2024/01/23-08:31:09.666 3a24 Recovering log #28
2024/01/23-08:31:09.690 3a24 Delete type=0 #28
2024/01/23-08:31:09.690 3a24 Delete type=3 #26
2024/01/23-13:07:43.712 1d1c Recovering log #32
2024/01/23-13:07:43.736 1d1c Delete type=0 #32
2024/01/23-13:07:43.736 1d1c Delete type=3 #30
+7 -7
View File
@@ -1,7 +1,7 @@
2024/01/22-19:59:18.980 809c Recovering log #24
2024/01/22-19:59:19.001 809c Delete type=0 #24
2024/01/22-19:59:19.001 809c Delete type=3 #22
2024/01/23-08:31:06.016 7e04 Level-0 table #29: started
2024/01/23-08:31:06.016 7e04 Level-0 table #29: 0 bytes OK
2024/01/23-08:31:06.033 7e04 Delete type=0 #27
2024/01/23-08:31:06.033 7e04 Manual compaction at level-0 from '!macros!0Yw4QWSAeOuUzRqB' @ 72057594037927935 : 1 .. '!macros!z5V92LyXHjfMxnRQ' @ 0 : 0; will stop at (end)
2024/01/23-08:31:09.666 3a24 Recovering log #28
2024/01/23-08:31:09.690 3a24 Delete type=0 #28
2024/01/23-08:31:09.690 3a24 Delete type=3 #26
2024/01/23-13:07:39.554 7e04 Level-0 table #33: started
2024/01/23-13:07:39.554 7e04 Level-0 table #33: 0 bytes OK
2024/01/23-13:07:39.562 7e04 Delete type=0 #31
2024/01/23-13:07:39.569 7e04 Manual compaction at level-0 from '!macros!0Yw4QWSAeOuUzRqB' @ 72057594037927935 : 1 .. '!macros!z5V92LyXHjfMxnRQ' @ 0 : 0; will stop at (end)
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000030
MANIFEST-000034
+3 -3
View File
@@ -1,3 +1,3 @@
2024/01/23-08:31:09.607 5104 Recovering log #28
2024/01/23-08:31:09.632 5104 Delete type=0 #28
2024/01/23-08:31:09.632 5104 Delete type=3 #26
2024/01/23-13:07:43.658 3a24 Recovering log #32
2024/01/23-13:07:43.682 3a24 Delete type=0 #32
2024/01/23-13:07:43.682 3a24 Delete type=3 #30
+7 -7
View File
@@ -1,7 +1,7 @@
2024/01/22-19:59:18.924 3a24 Recovering log #24
2024/01/22-19:59:18.948 3a24 Delete type=0 #24
2024/01/22-19:59:18.948 3a24 Delete type=3 #22
2024/01/23-08:31:05.964 7e04 Level-0 table #29: started
2024/01/23-08:31:05.964 7e04 Level-0 table #29: 0 bytes OK
2024/01/23-08:31:05.970 7e04 Delete type=0 #27
2024/01/23-08:31:05.986 7e04 Manual compaction at level-0 from '!macros!06j3tzX29f4pwYwh' @ 72057594037927935 : 1 .. '!macros!zLRsweb35Lw0NMev' @ 0 : 0; will stop at (end)
2024/01/23-08:31:09.607 5104 Recovering log #28
2024/01/23-08:31:09.632 5104 Delete type=0 #28
2024/01/23-08:31:09.632 5104 Delete type=3 #26
2024/01/23-13:07:39.548 7e04 Level-0 table #33: started
2024/01/23-13:07:39.548 7e04 Level-0 table #33: 0 bytes OK
2024/01/23-13:07:39.554 7e04 Delete type=0 #31
2024/01/23-13:07:39.569 7e04 Manual compaction at level-0 from '!macros!06j3tzX29f4pwYwh' @ 72057594037927935 : 1 .. '!macros!zLRsweb35Lw0NMev' @ 0 : 0; will stop at (end)
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000030
MANIFEST-000034
+3 -3
View File
@@ -1,3 +1,3 @@
2024/01/23-08:31:09.667 5104 Recovering log #28
2024/01/23-08:31:09.691 5104 Delete type=0 #28
2024/01/23-08:31:09.691 5104 Delete type=3 #26
2024/01/23-13:07:43.714 5104 Recovering log #32
2024/01/23-13:07:43.745 5104 Delete type=0 #32
2024/01/23-13:07:43.745 5104 Delete type=3 #30
+7 -7
View File
@@ -1,7 +1,7 @@
2024/01/22-19:59:18.980 5104 Recovering log #24
2024/01/22-19:59:19.001 5104 Delete type=0 #24
2024/01/22-19:59:19.001 5104 Delete type=3 #22
2024/01/23-08:31:06.009 7e04 Level-0 table #29: started
2024/01/23-08:31:06.009 7e04 Level-0 table #29: 0 bytes OK
2024/01/23-08:31:06.015 7e04 Delete type=0 #27
2024/01/23-08:31:06.033 7e04 Manual compaction at level-0 from '!tables!1vCm4ElRPotQXgNB' @ 72057594037927935 : 1 .. '!tables.results!kqKpQAXyLTEEyz6Z.xdwwswzfoPuVifvw' @ 0 : 0; will stop at (end)
2024/01/23-08:31:09.667 5104 Recovering log #28
2024/01/23-08:31:09.691 5104 Delete type=0 #28
2024/01/23-08:31:09.691 5104 Delete type=3 #26
2024/01/23-13:07:39.596 7e04 Level-0 table #33: started
2024/01/23-13:07:39.596 7e04 Level-0 table #33: 0 bytes OK
2024/01/23-13:07:39.615 7e04 Delete type=0 #31
2024/01/23-13:07:39.615 7e04 Manual compaction at level-0 from '!tables!1vCm4ElRPotQXgNB' @ 72057594037927935 : 1 .. '!tables.results!kqKpQAXyLTEEyz6Z.xdwwswzfoPuVifvw' @ 0 : 0; will stop at (end)
Binary file not shown.
View File
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000030
MANIFEST-000035
+3 -3
View File
@@ -1,3 +1,3 @@
2024/01/23-08:31:09.608 1d1c Recovering log #28
2024/01/23-08:31:09.635 1d1c Delete type=0 #28
2024/01/23-08:31:09.635 1d1c Delete type=3 #26
2024/01/23-13:07:43.659 1d1c Recovering log #32
2024/01/23-13:07:43.682 1d1c Delete type=0 #32
2024/01/23-13:07:43.682 1d1c Delete type=3 #30
+14 -7
View File
@@ -1,7 +1,14 @@
2024/01/22-19:59:18.925 809c Recovering log #24
2024/01/22-19:59:18.948 809c Delete type=0 #24
2024/01/22-19:59:18.949 809c Delete type=3 #22
2024/01/23-08:31:05.996 7e04 Level-0 table #29: started
2024/01/23-08:31:05.996 7e04 Level-0 table #29: 0 bytes OK
2024/01/23-08:31:06.002 7e04 Delete type=0 #27
2024/01/23-08:31:06.016 7e04 Manual compaction at level-0 from '!tables!31YibfjueXuZdNLb' @ 72057594037927935 : 1 .. '!tables.results!ypcoikqHLhnc9tNs.zJkYrssfrdWBSeRm' @ 0 : 0; will stop at (end)
2024/01/23-08:31:09.608 1d1c Recovering log #28
2024/01/23-08:31:09.635 1d1c Delete type=0 #28
2024/01/23-08:31:09.635 1d1c Delete type=3 #26
2024/01/23-13:07:39.502 7e04 Level-0 table #33: started
2024/01/23-13:07:39.517 7e04 Level-0 table #33: 2804 bytes OK
2024/01/23-13:07:39.524 7e04 Delete type=0 #31
2024/01/23-13:07:39.524 7e04 Manual compaction at level-0 from '!tables!31YibfjueXuZdNLb' @ 72057594037927935 : 1 .. '!tables.results!ypcoikqHLhnc9tNs.zJkYrssfrdWBSeRm' @ 0 : 0; will stop at '!tables.results!AqGWwoWXzijFs427.yVzV5Y0tNWSqPVpS' @ 280 : 0
2024/01/23-13:07:39.524 7e04 Compacting 1@0 + 1@1 files
2024/01/23-13:07:39.540 7e04 Generated table #34@0: 278 keys, 47988 bytes
2024/01/23-13:07:39.542 7e04 Compacted 1@0 + 1@1 files => 47988 bytes
2024/01/23-13:07:39.548 7e04 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/01/23-13:07:39.548 7e04 Delete type=2 #13
2024/01/23-13:07:39.548 7e04 Delete type=2 #33
2024/01/23-13:07:39.569 7e04 Manual compaction at level-0 from '!tables.results!AqGWwoWXzijFs427.yVzV5Y0tNWSqPVpS' @ 280 : 0 .. '!tables.results!ypcoikqHLhnc9tNs.zJkYrssfrdWBSeRm' @ 0 : 0; will stop at (end)
Binary file not shown.
Binary file not shown.
+4 -1
View File
@@ -224,7 +224,10 @@
"runSetup" : true,
"megadamage" : {
"html" : "",
"hits" : []
"hits" : [],
"menu" : {
"html" : ""
}
},
"stats": {
"armor": {
+17 -3
View File
@@ -249,17 +249,31 @@
<div class="resource healthspread minmaxtopstat flex-center">
<label for="system.supplies.hull.value" class="resource-label minmaxtext">Hull Points</label>
<div class="valuewrapper">
<div class="valuewrapper" style="width: 120px;">
<input class="maxhealth-input darkGreyText" type="text" name="system.supplies.hull.value"
value="{{system.supplies.hull.value}}" data-dtype="Number" />
</div>
</div>
<div class="resource healthspread minmaxtopstat flex-center">
<label for="system.supplies.hull.value" class="resource-label minmaxtext">Current<br/>Megadamage</label>
<div class="valuewrapper" style="width: 120px;">
<input class="maxhealth-input darkGreyText" type="text" name="system.megadamage.value"
value="{{system.megadamage.value}}" data-dtype="Number" />
</div>
</div>
<div class="blackline"></div>
<div class="circlestattitle">Megadamage</div>
<div class="circlestattitle">Megadamage Effects</div>
<br/>
<div>{{{system.megadamage.html}}}</div>
<div class="megadamage-list">{{{system.megadamage.html}}}</div>
<!-- Megadamage Settings -->
<div class="button-grey megadamage-menu-button list-roll">Add/Remove <i class="fa-solid fa-gears "></i></div>
</div>
@@ -0,0 +1,18 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<!-- Header -->
<div class="header-fields">
</div>
</header>
<div class="circle-statwrapper" style="gap: 10px;">
<div class="circlestattitle" style="font-size: 1.1rem;">Megadamage Effects</div>
<!-- Starting Conditions -->
<div class="sbt-megadamage-menu">{{{actor.system.megadamage.menu.html}}}</div>
</div>
<br/>
<div class="button-white close-button list-roll" style="width: 95%;">FINISH <i class="fa-solid fa-right-long"></i></div>
</form>