Megadamage Tab + Repair Items

This commit is contained in:
Futil
2024-01-28 20:45:49 -07:00
parent 57ee7061cb
commit fbd8238dd8
77 changed files with 435 additions and 163 deletions
+84
View File
@@ -1060,6 +1060,31 @@ p {
z-index: 5;
}
.mosh .box1 {
display: none;
}
.mosh .box2 {
color: green;
display: block;
display: flex;
align-items: center;
justify-content: center;
}
.mosh .circle-input-swapper {
width: auto;
display: inline-block;
}
.mosh .circle-input-swapper:enabled .box1 {
display: block;
}
.mosh .circle-input-swapper:enabled .box2 {
display: none;
}
.mosh .textarea-input {
font-family: "Roboto", sans-serif;
margin: -0.15em;
@@ -1216,6 +1241,65 @@ p {
padding: 4px 6px;
}
.mosh .sbt-text-area{
font-family: "Roboto", sans-serif;
margin: -0.15em;
border: 2px solid #c5c5c5;
border-radius: 15px;
font-size: 11pt;
font-weight: bold;
background: #fff;
resize: none;
min-height: 0;
overflow: hidden;
}
.mosh .sbt-megadamage-tab{
position: absolute;
rotate: -90deg;
left: -80px;
top: 71px;
border-radius: 10px 10px 0 0;
z-index: -1;
box-shadow: 0 0 22px -6px;
border: 2px solid;
}
.mosh .sbt-megadamage{
/* position: absolute; */
/* left: 0; */
/* background: white;
left: -300px;
width: 300px;
padding: 20px;
border-radius: 10px 0 0 10px;
height: 600px;
overflow-y: auto;
z-index: -1; */
position: absolute;
background: white;
left: -310px;
width: 300px;
padding: 20px;
border-radius: 10px;
z-index: -2;
transition: 1s;
height: auto;
overflow: hidden;
}
.mosh .sbt-megadamage-open{
left: -310px;
height: auto;
}
.mosh .sbt-megadamage-closed{
left: 0;
height: 0%;
}
.mosh .sbt-crew-name {
text-align: center;
font-size: 1rem;
+67 -5
View File
@@ -16,9 +16,9 @@ export class MothershipShipSheetSBT extends ActorSheet {
classes: ["mosh", "sheet", "actor", "ship"],
template: "systems/mosh/templates/actor/ship-sheet-sbt.html",
width: 700,
height: 800,
tabs: [{ navSelector: "#sheet-tabs", contentSelector: "#sheet-body", initial: "character" },
{ navSelector: "#side-tabs", contentSelector: "#side-body", initial: "crew" }],
height: 840,
tabs: [{ navSelector: "#sheet-tabs", contentSelector: "#sheet-body", initial: "character" }],
// { navSelector: "#side-tabs", contentSelector: "#side-body", initial: "crew" }],
scrollY: [".sheet-body", "scroll-lock"]
});
}
@@ -71,6 +71,9 @@ export class MothershipShipSheetSBT extends ActorSheet {
const superData = data.data.system;
superData.page = {}; //Prep the page object, for any html specific stuff we want to do.
console.log(superData);
console.log("ack");
// Prepare items.
if (this.actor.type == 'ship') {
this._prepareShipItems(data);
@@ -122,6 +125,8 @@ export class MothershipShipSheetSBT extends ActorSheet {
const weapons = [];
const cargo = [];
const modules = [];
const minorRepairs = [];
const majorRepairs = [];
// Iterate through items, allocating to containers
// let totalWeight = 0;
@@ -137,6 +142,13 @@ export class MothershipShipSheetSBT extends ActorSheet {
cargo.push(i);
} else if (i.type === 'module') {
modules.push(i);
} else if (i.type == 'repair'){
if(i.system.major){
majorRepairs.push(i);
}
else{
minorRepairs.push(i);
}
}
}
@@ -145,6 +157,9 @@ export class MothershipShipSheetSBT extends ActorSheet {
actorData.weapons = weapons;
actorData.cargo = cargo;
actorData.modules = modules;
actorData.minorRepairs = minorRepairs;
actorData.majorRepairs = majorRepairs;
}
async _prepareMegadamage(sheetData){
@@ -206,6 +221,21 @@ export class MothershipShipSheetSBT extends ActorSheet {
"data.megadamage.html": megadamageHTML
});
console.log(actorData.system)
if(actorData.system.page == undefined){
actorData.system.page = {};
}
actorData.system.page.megadamageMenuClass = "";
if(actorData.system.megadamage.open){
actorData.system.page.megadamageMenuClass = "sbt-megadamage-open"
} else {
actorData.system.page.megadamageMenuClass = "sbt-megadamage-closed"
}
// await this.object.update({
// "data.megadamage.hits": []
// });
@@ -225,7 +255,6 @@ export class MothershipShipSheetSBT extends ActorSheet {
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);
@@ -317,6 +346,27 @@ export class MothershipShipSheetSBT extends ActorSheet {
//Megadamage Menu Button
html.find('.megadamage-menu-button').click(ev => this._onOpenMegadamage(ev));
//Megadamage Menu Button
html.find('.megadamage-sidebar-button').click(ev => {
const data = this.object;
console.log(data);
console.log(data.data.system.megadamage.open);
let sidebarClasses = ""
if(data.data.system.megadamage.open){
sidebarClasses = "sbt-megadamage-open"
} else {
sidebarClasses = "sbt-megadamage-closed"
}
this.object.update({
"data.megadamage.open": !data.data.system.megadamage.open,
"data.megadamage.sidebarclasses" : sidebarClasses
});
});
html.on('mousedown', '.weapon-ammo', ev => {
const li = ev.currentTarget.closest(".item");
@@ -376,6 +426,10 @@ export class MothershipShipSheetSBT extends ActorSheet {
const header = event.currentTarget;
// Get the type of item to create.
const type = header.dataset.type;
const subtype = header.dataset.subtype;
// Grab any data associated with this control.
const data = duplicate(header.dataset);
// Initialize a default name.
@@ -384,8 +438,16 @@ export class MothershipShipSheetSBT extends ActorSheet {
const itemData = {
name: name,
type: type,
data: data
data: data,
system : {}
};
if(type == "repair"){
itemData.system.major = (header.dataset.subtype == "major");
console.log(header.dataset.subtype);
}
// Remove the type from the dataset since it's in the itemData.type prop.
delete itemData.data["type"];
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000002
MANIFEST-000012
+3 -5
View File
@@ -1,5 +1,3 @@
2024/01/27-13:22:40.893 67cc Delete type=3 #1
2024/01/27-13:23:55.121 4ae0 Level-0 table #5: started
2024/01/27-13:23:55.128 4ae0 Level-0 table #5: 8479 bytes OK
2024/01/27-13:23:55.132 4ae0 Delete type=0 #3
2024/01/27-13:23:55.159 4ae0 Manual compaction at level-0 from '!items!1r6ruvSdxn2bHHIk' @ 72057594037927935 : 1 .. '!items!zbKI2RCl5h3vowoy' @ 0 : 0; will stop at (end)
2024/01/28-12:59:46.984 7014 Recovering log #9
2024/01/28-12:59:47.006 7014 Delete type=0 #9
2024/01/28-12:59:47.006 7014 Delete type=3 #7
+11
View File
@@ -0,0 +1,11 @@
2024/01/28-10:54:38.985 7014 Delete type=3 #1
2024/01/28-12:59:43.678 8f38 Level-0 table #10: started
2024/01/28-12:59:43.678 8f38 Level-0 table #10: 0 bytes OK
2024/01/28-12:59:43.684 8f38 Delete type=0 #8
2024/01/28-12:59:43.707 8f38 Manual compaction at level-0 from '!items!1r6ruvSdxn2bHHIk' @ 72057594037927935 : 1 .. '!items!zbKI2RCl5h3vowoy' @ 0 : 0; will stop at '!items!zbKI2RCl5h3vowoy' @ 35 : 1
2024/01/28-12:59:43.707 8f38 Compacting 1@0 + 0@1 files
2024/01/28-12:59:43.714 8f38 Generated table #11@0: 35 keys, 8479 bytes
2024/01/28-12:59:43.714 8f38 Compacted 1@0 + 0@1 files => 8479 bytes
2024/01/28-12:59:43.719 8f38 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/01/28-12:59:43.720 8f38 Delete type=2 #5
2024/01/28-12:59:43.738 8f38 Manual compaction at level-0 from '!items!zbKI2RCl5h3vowoy' @ 35 : 1 .. '!items!zbKI2RCl5h3vowoy' @ 0 : 0; will stop at (end)
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000002
MANIFEST-000012
+3 -5
View File
@@ -1,5 +1,3 @@
2024/01/27-13:22:40.725 2b88 Delete type=3 #1
2024/01/27-13:23:55.024 4ae0 Level-0 table #5: started
2024/01/27-13:23:55.032 4ae0 Level-0 table #5: 14495 bytes OK
2024/01/27-13:23:55.036 4ae0 Delete type=0 #3
2024/01/27-13:23:55.036 4ae0 Manual compaction at level-0 from '!items!0ZAwhewvLBwX3opf' @ 72057594037927935 : 1 .. '!items!z0avrplKe6M0RcXk' @ 0 : 0; will stop at (end)
2024/01/28-12:59:46.920 7014 Recovering log #9
2024/01/28-12:59:46.946 7014 Delete type=0 #9
2024/01/28-12:59:46.946 7014 Delete type=3 #7
+11
View File
@@ -0,0 +1,11 @@
2024/01/28-10:54:38.882 7014 Delete type=3 #1
2024/01/28-12:59:43.590 8f38 Level-0 table #10: started
2024/01/28-12:59:43.590 8f38 Level-0 table #10: 0 bytes OK
2024/01/28-12:59:43.596 8f38 Delete type=0 #8
2024/01/28-12:59:43.608 8f38 Manual compaction at level-0 from '!items!0ZAwhewvLBwX3opf' @ 72057594037927935 : 1 .. '!items!z0avrplKe6M0RcXk' @ 0 : 0; will stop at '!items!z0avrplKe6M0RcXk' @ 49 : 1
2024/01/28-12:59:43.608 8f38 Compacting 1@0 + 0@1 files
2024/01/28-12:59:43.616 8f38 Generated table #11@0: 49 keys, 14495 bytes
2024/01/28-12:59:43.616 8f38 Compacted 1@0 + 0@1 files => 14495 bytes
2024/01/28-12:59:43.621 8f38 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/01/28-12:59:43.621 8f38 Delete type=2 #5
2024/01/28-12:59:43.653 8f38 Manual compaction at level-0 from '!items!z0avrplKe6M0RcXk' @ 49 : 1 .. '!items!z0avrplKe6M0RcXk' @ 0 : 0; will stop at (end)
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000002
MANIFEST-000012
+3 -5
View File
@@ -1,5 +1,3 @@
2024/01/27-13:22:40.757 67cc Delete type=3 #1
2024/01/27-13:23:55.056 4ae0 Level-0 table #5: started
2024/01/27-13:23:55.063 4ae0 Level-0 table #5: 12692 bytes OK
2024/01/27-13:23:55.068 4ae0 Delete type=0 #3
2024/01/27-13:23:55.091 4ae0 Manual compaction at level-0 from '!items!1HNvL7XEUcMQbLps' @ 72057594037927935 : 1 .. '!items!zRzb3Laiuw4ac6p0' @ 0 : 0; will stop at (end)
2024/01/28-12:59:46.920 37ec Recovering log #9
2024/01/28-12:59:46.947 37ec Delete type=0 #9
2024/01/28-12:59:46.947 37ec Delete type=3 #7
+11
View File
@@ -0,0 +1,11 @@
2024/01/28-10:54:38.887 37ec Delete type=3 #1
2024/01/28-12:59:43.602 8f38 Level-0 table #10: started
2024/01/28-12:59:43.602 8f38 Level-0 table #10: 0 bytes OK
2024/01/28-12:59:43.608 8f38 Delete type=0 #8
2024/01/28-12:59:43.636 8f38 Manual compaction at level-0 from '!items!1HNvL7XEUcMQbLps' @ 72057594037927935 : 1 .. '!items!zRzb3Laiuw4ac6p0' @ 0 : 0; will stop at '!items!zRzb3Laiuw4ac6p0' @ 100 : 1
2024/01/28-12:59:43.636 8f38 Compacting 1@0 + 0@1 files
2024/01/28-12:59:43.641 8f38 Generated table #11@0: 100 keys, 12692 bytes
2024/01/28-12:59:43.641 8f38 Compacted 1@0 + 0@1 files => 12692 bytes
2024/01/28-12:59:43.646 8f38 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/01/28-12:59:43.646 8f38 Delete type=2 #5
2024/01/28-12:59:43.653 8f38 Manual compaction at level-0 from '!items!zRzb3Laiuw4ac6p0' @ 100 : 1 .. '!items!zRzb3Laiuw4ac6p0' @ 0 : 0; will stop at (end)
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000002
MANIFEST-000012
+3 -5
View File
@@ -1,5 +1,3 @@
2024/01/27-13:22:40.925 2b88 Delete type=3 #1
2024/01/27-13:23:55.132 4ae0 Level-0 table #5: started
2024/01/27-13:23:55.139 4ae0 Level-0 table #5: 13847 bytes OK
2024/01/27-13:23:55.143 4ae0 Delete type=0 #3
2024/01/27-13:23:55.159 4ae0 Manual compaction at level-0 from '!macros!2xRvRAixuocjCm40' @ 72057594037927935 : 1 .. '!macros!ilBclUmPwcd7aNQK' @ 0 : 0; will stop at (end)
2024/01/28-12:59:47.016 37ec Recovering log #9
2024/01/28-12:59:47.043 37ec Delete type=0 #9
2024/01/28-12:59:47.043 37ec Delete type=3 #7
+11
View File
@@ -0,0 +1,11 @@
2024/01/28-10:54:39.032 7014 Delete type=3 #1
2024/01/28-12:59:43.732 8f38 Level-0 table #10: started
2024/01/28-12:59:43.732 8f38 Level-0 table #10: 0 bytes OK
2024/01/28-12:59:43.738 8f38 Delete type=0 #8
2024/01/28-12:59:43.738 8f38 Manual compaction at level-0 from '!macros!2xRvRAixuocjCm40' @ 72057594037927935 : 1 .. '!macros!ilBclUmPwcd7aNQK' @ 0 : 0; will stop at '!macros!ilBclUmPwcd7aNQK' @ 9 : 1
2024/01/28-12:59:43.738 8f38 Compacting 1@0 + 0@1 files
2024/01/28-12:59:43.763 8f38 Generated table #11@0: 9 keys, 13847 bytes
2024/01/28-12:59:43.763 8f38 Compacted 1@0 + 0@1 files => 13847 bytes
2024/01/28-12:59:43.779 8f38 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/01/28-12:59:43.779 8f38 Delete type=2 #5
2024/01/28-12:59:43.794 8f38 Manual compaction at level-0 from '!macros!ilBclUmPwcd7aNQK' @ 9 : 1 .. '!macros!ilBclUmPwcd7aNQK' @ 0 : 0; will stop at (end)
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000002
MANIFEST-000012
+3 -5
View File
@@ -1,5 +1,3 @@
2024/01/27-13:22:40.794 2b88 Delete type=3 #1
2024/01/27-13:23:55.068 4ae0 Level-0 table #5: started
2024/01/27-13:23:55.075 4ae0 Level-0 table #5: 17699 bytes OK
2024/01/27-13:23:55.085 4ae0 Delete type=0 #3
2024/01/27-13:23:55.102 4ae0 Manual compaction at level-0 from '!macros!2u4a5gEogtLd3XQz' @ 72057594037927935 : 1 .. '!macros!trU0DtBJvJCPddsQ' @ 0 : 0; will stop at (end)
2024/01/28-12:59:46.951 37ec Recovering log #9
2024/01/28-12:59:46.979 37ec Delete type=0 #9
2024/01/28-12:59:46.979 37ec Delete type=3 #7
+11
View File
@@ -0,0 +1,11 @@
2024/01/28-10:54:38.933 37ec Delete type=3 #1
2024/01/28-12:59:43.596 8f38 Level-0 table #10: started
2024/01/28-12:59:43.596 8f38 Level-0 table #10: 0 bytes OK
2024/01/28-12:59:43.601 8f38 Delete type=0 #8
2024/01/28-12:59:43.621 8f38 Manual compaction at level-0 from '!macros!2u4a5gEogtLd3XQz' @ 72057594037927935 : 1 .. '!macros!trU0DtBJvJCPddsQ' @ 0 : 0; will stop at '!macros!trU0DtBJvJCPddsQ' @ 11 : 1
2024/01/28-12:59:43.621 8f38 Compacting 1@0 + 0@1 files
2024/01/28-12:59:43.630 8f38 Generated table #11@0: 11 keys, 17699 bytes
2024/01/28-12:59:43.630 8f38 Compacted 1@0 + 0@1 files => 17699 bytes
2024/01/28-12:59:43.636 8f38 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/01/28-12:59:43.636 8f38 Delete type=2 #5
2024/01/28-12:59:43.653 8f38 Manual compaction at level-0 from '!macros!trU0DtBJvJCPddsQ' @ 11 : 1 .. '!macros!trU0DtBJvJCPddsQ' @ 0 : 0; will stop at (end)
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000002
MANIFEST-000012
+3 -5
View File
@@ -1,5 +1,3 @@
2024/01/27-13:22:40.956 67cc Delete type=3 #1
2024/01/27-13:23:55.143 4ae0 Level-0 table #5: started
2024/01/27-13:23:55.154 4ae0 Level-0 table #5: 14286 bytes OK
2024/01/27-13:23:55.159 4ae0 Delete type=0 #3
2024/01/27-13:23:55.174 4ae0 Manual compaction at level-0 from '!macros!0Yw4QWSAeOuUzRqB' @ 72057594037927935 : 1 .. '!macros!z5V92LyXHjfMxnRQ' @ 0 : 0; will stop at (end)
2024/01/28-12:59:47.017 7014 Recovering log #9
2024/01/28-12:59:47.049 7014 Delete type=0 #9
2024/01/28-12:59:47.049 7014 Delete type=3 #7
+11
View File
@@ -0,0 +1,11 @@
2024/01/28-10:54:39.038 8504 Delete type=3 #1
2024/01/28-12:59:43.684 8f38 Level-0 table #10: started
2024/01/28-12:59:43.684 8f38 Level-0 table #10: 0 bytes OK
2024/01/28-12:59:43.690 8f38 Delete type=0 #8
2024/01/28-12:59:43.720 8f38 Manual compaction at level-0 from '!macros!0Yw4QWSAeOuUzRqB' @ 72057594037927935 : 1 .. '!macros!z5V92LyXHjfMxnRQ' @ 0 : 0; will stop at '!macros!z5V92LyXHjfMxnRQ' @ 93 : 1
2024/01/28-12:59:43.720 8f38 Compacting 1@0 + 0@1 files
2024/01/28-12:59:43.726 8f38 Generated table #11@0: 93 keys, 14286 bytes
2024/01/28-12:59:43.726 8f38 Compacted 1@0 + 0@1 files => 14286 bytes
2024/01/28-12:59:43.732 8f38 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/01/28-12:59:43.732 8f38 Delete type=2 #5
2024/01/28-12:59:43.738 8f38 Manual compaction at level-0 from '!macros!z5V92LyXHjfMxnRQ' @ 93 : 1 .. '!macros!z5V92LyXHjfMxnRQ' @ 0 : 0; will stop at (end)
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000002
MANIFEST-000012
+3 -5
View File
@@ -1,5 +1,3 @@
2024/01/27-13:22:40.822 67cc Delete type=3 #1
2024/01/27-13:23:55.091 4ae0 Level-0 table #5: started
2024/01/27-13:23:55.101 4ae0 Level-0 table #5: 18692 bytes OK
2024/01/27-13:23:55.102 4ae0 Delete type=0 #3
2024/01/27-13:23:55.121 4ae0 Manual compaction at level-0 from '!macros!06j3tzX29f4pwYwh' @ 72057594037927935 : 1 .. '!macros!zLRsweb35Lw0NMev' @ 0 : 0; will stop at (end)
2024/01/28-12:59:46.952 7014 Recovering log #9
2024/01/28-12:59:46.981 7014 Delete type=0 #9
2024/01/28-12:59:46.981 7014 Delete type=3 #7
+11
View File
@@ -0,0 +1,11 @@
2024/01/28-10:54:38.938 8504 Delete type=3 #1
2024/01/28-12:59:43.647 8f38 Level-0 table #10: started
2024/01/28-12:59:43.647 8f38 Level-0 table #10: 0 bytes OK
2024/01/28-12:59:43.653 8f38 Delete type=0 #8
2024/01/28-12:59:43.653 8f38 Manual compaction at level-0 from '!macros!06j3tzX29f4pwYwh' @ 72057594037927935 : 1 .. '!macros!zLRsweb35Lw0NMev' @ 0 : 0; will stop at '!macros!zLRsweb35Lw0NMev' @ 128 : 1
2024/01/28-12:59:43.653 8f38 Compacting 1@0 + 0@1 files
2024/01/28-12:59:43.666 8f38 Generated table #11@0: 128 keys, 18692 bytes
2024/01/28-12:59:43.666 8f38 Compacted 1@0 + 0@1 files => 18692 bytes
2024/01/28-12:59:43.671 8f38 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/01/28-12:59:43.672 8f38 Delete type=2 #5
2024/01/28-12:59:43.690 8f38 Manual compaction at level-0 from '!macros!zLRsweb35Lw0NMev' @ 128 : 1 .. '!macros!zLRsweb35Lw0NMev' @ 0 : 0; will stop at (end)
Binary file not shown.
View File
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000002
MANIFEST-000012
+3 -5
View File
@@ -1,5 +1,3 @@
2024/01/27-13:22:40.986 2b88 Delete type=3 #1
2024/01/27-13:23:55.159 4ae0 Level-0 table #5: started
2024/01/27-13:23:55.167 4ae0 Level-0 table #5: 23482 bytes OK
2024/01/27-13:23:55.174 4ae0 Delete type=0 #3
2024/01/27-13:23:55.188 4ae0 Manual compaction at level-0 from '!tables!1vCm4ElRPotQXgNB' @ 72057594037927935 : 1 .. '!tables.results!kqKpQAXyLTEEyz6Z.xdwwswzfoPuVifvw' @ 0 : 0; will stop at (end)
2024/01/28-12:59:47.047 37ec Recovering log #9
2024/01/28-12:59:47.061 37ec Delete type=0 #9
2024/01/28-12:59:47.061 37ec Delete type=3 #7
+11
View File
@@ -0,0 +1,11 @@
2024/01/28-10:54:39.069 7014 Delete type=3 #1
2024/01/28-12:59:43.779 8f38 Level-0 table #10: started
2024/01/28-12:59:43.779 8f38 Level-0 table #10: 0 bytes OK
2024/01/28-12:59:43.794 8f38 Delete type=0 #8
2024/01/28-12:59:43.800 8f38 Manual compaction at level-0 from '!tables!1vCm4ElRPotQXgNB' @ 72057594037927935 : 1 .. '!tables.results!kqKpQAXyLTEEyz6Z.xdwwswzfoPuVifvw' @ 0 : 0; will stop at '!tables.results!kqKpQAXyLTEEyz6Z.xdwwswzfoPuVifvw' @ 78 : 1
2024/01/28-12:59:43.800 8f38 Compacting 1@0 + 0@1 files
2024/01/28-12:59:43.828 8f38 Generated table #11@0: 104 keys, 23482 bytes
2024/01/28-12:59:43.828 8f38 Compacted 1@0 + 0@1 files => 23482 bytes
2024/01/28-12:59:43.847 8f38 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/01/28-12:59:43.848 8f38 Delete type=2 #5
2024/01/28-12:59:43.850 8f38 Manual compaction at level-0 from '!tables.results!kqKpQAXyLTEEyz6Z.xdwwswzfoPuVifvw' @ 78 : 1 .. '!tables.results!kqKpQAXyLTEEyz6Z.xdwwswzfoPuVifvw' @ 0 : 0; will stop at (end)
Binary file not shown.
View File
View File
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000002
MANIFEST-000012
+3 -5
View File
@@ -1,5 +1,3 @@
2024/01/27-13:22:40.854 2b88 Delete type=3 #1
2024/01/27-13:23:55.102 4ae0 Level-0 table #5: started
2024/01/27-13:23:55.117 4ae0 Level-0 table #5: 50100 bytes OK
2024/01/27-13:23:55.120 4ae0 Delete type=0 #3
2024/01/27-13:23:55.143 4ae0 Manual compaction at level-0 from '!tables!31YibfjueXuZdNLb' @ 72057594037927935 : 1 .. '!tables.results!ypcoikqHLhnc9tNs.zJkYrssfrdWBSeRm' @ 0 : 0; will stop at (end)
2024/01/28-12:59:46.982 37ec Recovering log #9
2024/01/28-12:59:47.006 37ec Delete type=0 #9
2024/01/28-12:59:47.006 37ec Delete type=3 #7
+11
View File
@@ -0,0 +1,11 @@
2024/01/28-10:54:38.977 51b0 Delete type=3 #1
2024/01/28-12:59:43.672 8f38 Level-0 table #10: started
2024/01/28-12:59:43.672 8f38 Level-0 table #10: 0 bytes OK
2024/01/28-12:59:43.678 8f38 Delete type=0 #8
2024/01/28-12:59:43.690 8f38 Manual compaction at level-0 from '!tables!31YibfjueXuZdNLb' @ 72057594037927935 : 1 .. '!tables.results!ypcoikqHLhnc9tNs.zJkYrssfrdWBSeRm' @ 0 : 0; will stop at '!tables.results!ypcoikqHLhnc9tNs.zJkYrssfrdWBSeRm' @ 276 : 1
2024/01/28-12:59:43.690 8f38 Compacting 1@0 + 0@1 files
2024/01/28-12:59:43.700 8f38 Generated table #11@0: 278 keys, 50100 bytes
2024/01/28-12:59:43.700 8f38 Compacted 1@0 + 0@1 files => 50100 bytes
2024/01/28-12:59:43.707 8f38 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/01/28-12:59:43.707 8f38 Delete type=2 #5
2024/01/28-12:59:43.738 8f38 Manual compaction at level-0 from '!tables.results!ypcoikqHLhnc9tNs.zJkYrssfrdWBSeRm' @ 276 : 1 .. '!tables.results!ypcoikqHLhnc9tNs.zJkYrssfrdWBSeRm' @ 0 : 0; will stop at (end)
Binary file not shown.
View File
+2 -1
View File
@@ -227,7 +227,8 @@
"hits" : [],
"menu" : {
"html" : ""
}
},
"open" : false
},
"stats": {
"armor": {
+115 -103
View File
@@ -1,6 +1,31 @@
<form class="{{cssClass}}" autocomplete="off">
<div class="button-black sbt-megadamage-tab megadamage-sidebar-button list-roll">Megadamage</div>
<div class="megadamage sbt-megadamage {{{system.megadamage.sidebarclasses}}}">
<div class="circlestattitle">Megadamage</div>
<br/>
<div class="megadamage-list">{{{system.megadamage.html}}}</div>
<div class="circle-statwrapper">
<div class="resource healthspread minmaxtopstat flex-center" style="grid-template-rows: max-content;">
<label for="system.supplies.hull.value" class="resource-label minmaxtext">Hull Points</label>
<div class="valuewrapper" style="width: 120px; background: white;">
<input class="maxhealth-input darkGreyText" type="text" name="system.supplies.hull.value"
value="{{system.supplies.hull.value}}" data-dtype="Number" />
</div>
</div>
</div>
<!-- Megadamage Settings -->
<!-- <div class="button-grey megadamage-menu-button list-roll">Popout</div> -->
</div>
{{!-- Sheet Header --}}
<div class="header" style="grid-template-columns: 0.15fr 1fr;">
<img class="sbt-profile" src="{{img}}" data-edit="img" title="{{name}}" height="150" width="150" />
<div class="headergrid" style="grid-template-columns: 1fr 0.2fr 22px; padding: 1em;">
@@ -52,7 +77,6 @@
</div>
<div class="ship-sbt-stats-grid" style="margin-top: 10px; margin-bottom: 10px; height: 405px;">
<!-- Stats -->
@@ -63,8 +87,11 @@
<!-- Thrusters -->
<div class="resource circle-stat">
<input class="circle-input" type="text" name="system.stats.thrusters.value"
value="{{system.stats.thrusters.value}}" data-dtype="Number" />
<!-- <div class="circle-input-swapper"> -->
<input class="circle-input" type="text" name="system.stats.thrusters.value"
value="{{system.stats.thrusters.value}}" data-dtype="Number" />
<!-- <div class="circle-input box2">{{system.stats.thrusters.value}}</div> -->
<!-- </div> -->
</div>
<div class="circlestatlabel">
<span class="ability-mod stat-roll rollable circlestattext" data-key="thrusters"
@@ -108,7 +135,7 @@
<!-- Make/Model/ETC -->
<div class="area-title">Make / Model / Jump / Class / Type</div>
<textarea name="system.make" rows="2" class="textarea-input" type="text"
<textarea name="system.make" rows="2" class="sbt-text-area" type="text"
data-target="system.make" placeholder="" style="height: 110px; text-align: center;">{{system.make}}</textarea>
<div class="circle-statwrapper-horizontal" style="gap: 10%; height: 100px; padding: 20px;">
@@ -165,119 +192,54 @@
</div>
</div>
<!-- Ship Deckplan -->
<div class="button-black deckplan-button list-roll">Open Deckplan</div>
<!-- <div class="sbt-deckplan-parent">
<img class="img sbt-deckplan deckplan-button" style="width: 100%; height: auto;" src="{{system.images.layout}}" title="{{system.images.layout}}" />
</div> -->
<!-- Hull -->
<!-- <div class="resource healthspread minmaxtopstat flex-center" style="grid-template-rows: 12px 19px;">
<label for="system.supplies.hull.value" class="resource-label minmaxtext">Hull</label>
<div class="faded-label">{{system.supplies.hull.percentage}}</div>
<div class="minmaxwrapper">
<input class="maxhealth-input darkGreyText" type="text" name="system.supplies.hull.value"
value="{{system.supplies.hull.value}}" data-dtype="Number" />
<div class="slant"></div>
<input class="maxhealth-input darkGreyText" type="text" name="system.supplies.hull.max"
value="{{system.supplies.hull.max}}" data-dtype="Number" />
</div>
<div class="healthmaxtext">Current</div>
<div class="healthmaxtext">Maximum</div>
</div> -->
<!-- Ship Deckplan -->
<div class="button-black deckplan-button list-roll">Open Deckplan</div>
</div>
<!-- SIDE PANEL -->
<div class="sbt-crew-section scroll-lock">
{{!-- Sheet Tab Navigation --}}
<nav class="mosh sheet-tabs tabs" id="side-tabs" style="height: auto;" data-group="primary">
<!-- <nav class="mosh sheet-tabs tabs" id="side-tabs" style="height: auto;" data-group="primary">
<a class="tab-select" data-tab="crew">Crew</a>
<a class="tab-select" data-tab="megadamage">Damage</a>
</nav>
</nav> -->
<!-- CREW COUNTER -->
<div class="resource healthspread minmaxtopstat flex-center" style="margin: auto; margin-top: 2px;">
<label for="system.stats.crew.value" class="resource-label minmaxtext">CREW</label>
{{!-- Sheet Body --}}
<section class="sheet-body" id="side-body">
{{!-- Crew Tab --}}
<div class="tab" data-group="primary" data-tab="crew">
<!-- CREW COUNTER -->
<div class="resource healthspread minmaxtopstat flex-center" style="margin: auto; margin-top: 10px;">
<label for="system.stats.crew.value" class="resource-label minmaxtext">CREW</label>
<div class="minmaxwrapper-black">
<input class="maxhealth-input darkGreyText" type="text" name="system.supplies.crew.value"
value="{{system.supplies.crew.value}}" data-dtype="Number" />
<div class="slant"></div>
<input class="maxhealth-input darkGreyText" type="text" name="system.supplies.crew.max"
value="{{system.supplies.crew.max}}" data-dtype="Number" />
</div>
<div class="healthmaxtext">Current</div>
<div class="healthmaxtext">Maximum</div>
</div>
<div class="blackline"></div>
{{#each crew as | crew id|}}
<div class="creature-ability-container item" data-item-id="{{crew._id}}">
<div class="sbt-crew-name">
{{crew.name}}
<label class="hidden-item-controls" style="margin-left: 3px; font-size: 0.7rem;">
<a class="item-control item-edit darkgrey" title="Edit Crew Member"><i
class="fas fa-edit"></i></a>
<a class="item-control item-delete darkgrey" title="Delete Crew Member"><i
class="fas fa-trash"></i></a>
</label>
</div>
<div class="sbt-crew-job itemtext">{{{crew.system.job}}}</div>
</div>
{{/each}}
<a class="item-control weapon-create darkgrey " style="margin-left: 5px;" title="Create Crew Member"
data-type="crew"><i class="fas fa-plus"></i> Add</a>
<div class="minmaxwrapper-black">
<input class="maxhealth-input darkGreyText" type="text" name="system.supplies.crew.value"
value="{{system.supplies.crew.value}}" data-dtype="Number" />
<div class="slant"></div>
<input class="maxhealth-input darkGreyText" type="text" name="system.supplies.crew.max"
value="{{system.supplies.crew.max}}" data-dtype="Number" />
</div>
{{!-- Megadamage Tab --}}
<div class="tab megadamage" data-group="primary" data-tab="megadamage">
<div class="resource healthspread minmaxtopstat flex-center" style="margin-top: 10px; margin-bottom: -5px;">
<label for="system.supplies.hull.value" class="resource-label minmaxtext">Hull Points</label>
<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="healthmaxtext">Current</div>
<div class="healthmaxtext">Maximum</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 Effects</div>
<br/>
<div class="megadamage-list">{{{system.megadamage.html}}}</div>
<!-- Megadamage Settings -->
<div class="button-grey megadamage-menu-button list-roll">Popout</div>
<div class="blackline"></div>
{{#each crew as | crew id|}}
<div class="creature-ability-container item" data-item-id="{{crew._id}}">
<div class="sbt-crew-name">
{{crew.name}}
<label class="hidden-item-controls" style="margin-left: 3px; font-size: 0.7rem;">
<a class="item-control item-edit darkgrey" title="Edit Crew Member"><i
class="fas fa-edit"></i></a>
<a class="item-control item-delete darkgrey" title="Delete Crew Member"><i
class="fas fa-trash"></i></a>
</label>
</div>
</section>
<div class="sbt-crew-job itemtext">{{{crew.system.job}}}</div>
</div>
{{/each}}
<a class="item-control weapon-create darkgrey " style="margin-left: 5px;" title="Create Crew Member"
data-type="crew"><i class="fas fa-plus"></i> Add</a>
</div>
</div>
@@ -294,6 +256,7 @@
<a class="tab-select" data-tab="weapons">Weapons</a>
<a class="tab-select" data-tab="modules">Upgrades</a>
<a class="tab-select" data-tab="cargo">Cargo</a>
<a class="tab-select" data-tab="repairs">Repairs</a>
<a class="tab-select" data-tab="description">Notes</a>
</nav>
@@ -478,5 +441,54 @@
{{/each}}
</ol>
</div>
{{!-- Repair Tab --}}
<div class="tab items" data-group="primary" data-tab="repairs">
<div style="display: flex; gap: 10px;">
<!-- minorRepairs -->
<ol class="items-list" style="width: 100%;">
<li class="item flexrow item-header">
<div class="item-image"></div>
<div class="skill-stat" style="flex-grow: 2;">Minor Repairs</div>
<div class="item-controls">
<a class="item-control item-create" title="Create Item" data-type="repair" data-subtype="minor"><i
class="fas fa-plus"></i> Add</a>
</div>
</li>
{{#each minorRepairs as |item id|}}
<li class="item flexrow dropitem" data-item-id="{{item._id}}">
<div class="item-image"><img src="{{item.img}}" title="{{item.name}}" width="24" height="24" />
</div>
<h4 class="skill-name list-roll description-roll" style="flex-grow: 2;">{{item.name}}</h4>
<div class="item-controls">
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ol>
<!-- majorRepairs -->
<ol class="items-list" style="width: 100%;">
<li class="item flexrow item-header">
<div class="item-image"></div>
<div class="skill-stat" style="flex-grow: 2;">Major Repairs</div>
<div class="item-controls">
<a class="item-control item-create" title="Create Item" data-type="repair" data-subtype="major"><i
class="fas fa-plus"></i> Add</a>
</div>
</li>
{{#each majorRepairs as |item id|}}
<li class="item flexrow dropitem" data-item-id="{{item._id}}">
<div class="item-image"><img src="{{item.img}}" title="{{item.name}}" width="24" height="24" />
</div>
<h4 class="skill-name list-roll description-roll" style="flex-grow: 2;">{{item.name}}</h4>
<div class="item-controls">
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ol>
</div>
</div>
</section>
</form>
+32
View File
@@ -0,0 +1,32 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" />
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
<div class="grid grid-2col">
<div class="resource">
<label class="resource-label">Quantity</label>
<input type="text" name="system.quantity" value="{{system.quantity}}" data-dtype="Number" />
</div>
<div class="resource">
<label class="resource-label">Major</label>
<input type="checkbox" name="system.major" data-dtype="Boolean" {{checked system.major}}/>
</div>
</div>
</div>
</header>
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="description">Description</a>
</nav>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- Description Tab --}}
<div class="tab" data-group="primary" data-tab="description">
{{editor system.description target="system.description" button=true owner=owner editable=true}}
</div>
</section>
</form>