Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8a5d1cc1d8 |
@@ -1359,6 +1359,10 @@ i.fvtt-ftl-nomad {
|
||||
min-width: 25rem;
|
||||
max-width: 25rem;
|
||||
}
|
||||
.fvtt-ftl-nomad .robot-main .robot-pc .robot-right .main-stats .encumbered {
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
}
|
||||
.fvtt-ftl-nomad .robot-main .robot-pc .robot-right .cargo label,
|
||||
.fvtt-ftl-nomad .robot-main .robot-pc .robot-right .capacity label {
|
||||
min-width: 4rem;
|
||||
|
||||
@@ -304,6 +304,15 @@
|
||||
"Gargantuan": "Gargantuan"
|
||||
},
|
||||
"FIELDS": {
|
||||
"enc": {
|
||||
"label": "Enc",
|
||||
"value": {
|
||||
"label": "Enc Curr."
|
||||
},
|
||||
"max": {
|
||||
"label": "Enc Max"
|
||||
}
|
||||
},
|
||||
"brain": {
|
||||
"label": "Brain"
|
||||
},
|
||||
|
||||
@@ -49,7 +49,19 @@ export default class FTLNomadRobot extends foundry.abstract.TypeDataModel {
|
||||
|
||||
prepareDerivedData() {
|
||||
super.prepareDerivedData();
|
||||
|
||||
let encMax = this.durability + (2 * this.skills.physical.value)
|
||||
if (encMax !== this.enc.max) {
|
||||
this.enc.max = encMax
|
||||
}
|
||||
let enc = 0
|
||||
for (let i of this.parent.items) {
|
||||
if (i.system?.enc) {
|
||||
enc += i.system.enc
|
||||
}
|
||||
}
|
||||
if (enc !== this.enc.value) {
|
||||
this.enc.value = enc
|
||||
}
|
||||
}
|
||||
|
||||
isEncumbered() {
|
||||
|
||||
@@ -1 +1 @@
|
||||
MANIFEST-000095
|
||||
MANIFEST-000099
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
2025/10/16-19:48:48.571698 7f18a4ffa6c0 Recovering log #93
|
||||
2025/10/16-19:48:48.582163 7f18a4ffa6c0 Delete type=3 #91
|
||||
2025/10/16-19:48:48.582233 7f18a4ffa6c0 Delete type=0 #93
|
||||
2025/10/16-19:50:49.674486 7f189e7fc6c0 Level-0 table #98: started
|
||||
2025/10/16-19:50:49.674520 7f189e7fc6c0 Level-0 table #98: 0 bytes OK
|
||||
2025/10/16-19:50:49.681475 7f189e7fc6c0 Delete type=0 #96
|
||||
2025/10/16-19:50:49.691929 7f189e7fc6c0 Manual compaction at level-0 from '!folders!AuBtSOj1mJmh88qx' @ 72057594037927935 : 1 .. '!items!zv9dwgL3p7ThQn7j' @ 0 : 0; will stop at (end)
|
||||
2025/10/18-17:56:08.077097 7f7b75bfa6c0 Recovering log #97
|
||||
2025/10/18-17:56:08.086491 7f7b75bfa6c0 Delete type=3 #95
|
||||
2025/10/18-17:56:08.086541 7f7b75bfa6c0 Delete type=0 #97
|
||||
2025/10/18-18:03:15.510704 7f7b6f3ff6c0 Level-0 table #102: started
|
||||
2025/10/18-18:03:15.510749 7f7b6f3ff6c0 Level-0 table #102: 0 bytes OK
|
||||
2025/10/18-18:03:15.548325 7f7b6f3ff6c0 Delete type=0 #100
|
||||
2025/10/18-18:03:15.624002 7f7b6f3ff6c0 Manual compaction at level-0 from '!folders!AuBtSOj1mJmh88qx' @ 72057594037927935 : 1 .. '!items!zv9dwgL3p7ThQn7j' @ 0 : 0; will stop at (end)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
2025/10/15-21:50:26.265715 7f189ffff6c0 Recovering log #88
|
||||
2025/10/15-21:50:26.325136 7f189ffff6c0 Delete type=3 #86
|
||||
2025/10/15-21:50:26.325207 7f189ffff6c0 Delete type=0 #88
|
||||
2025/10/15-22:19:29.836460 7f189e7fc6c0 Level-0 table #94: started
|
||||
2025/10/15-22:19:29.836492 7f189e7fc6c0 Level-0 table #94: 0 bytes OK
|
||||
2025/10/15-22:19:29.881737 7f189e7fc6c0 Delete type=0 #92
|
||||
2025/10/15-22:19:29.944478 7f189e7fc6c0 Manual compaction at level-0 from '!folders!AuBtSOj1mJmh88qx' @ 72057594037927935 : 1 .. '!items!zv9dwgL3p7ThQn7j' @ 0 : 0; will stop at (end)
|
||||
2025/10/16-19:48:48.571698 7f18a4ffa6c0 Recovering log #93
|
||||
2025/10/16-19:48:48.582163 7f18a4ffa6c0 Delete type=3 #91
|
||||
2025/10/16-19:48:48.582233 7f18a4ffa6c0 Delete type=0 #93
|
||||
2025/10/16-19:50:49.674486 7f189e7fc6c0 Level-0 table #98: started
|
||||
2025/10/16-19:50:49.674520 7f189e7fc6c0 Level-0 table #98: 0 bytes OK
|
||||
2025/10/16-19:50:49.681475 7f189e7fc6c0 Delete type=0 #96
|
||||
2025/10/16-19:50:49.691929 7f189e7fc6c0 Manual compaction at level-0 from '!folders!AuBtSOj1mJmh88qx' @ 72057594037927935 : 1 .. '!items!zv9dwgL3p7ThQn7j' @ 0 : 0; will stop at (end)
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
MANIFEST-000073
|
||||
MANIFEST-000077
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
2025/10/16-19:48:48.588685 7f189f7fe6c0 Recovering log #71
|
||||
2025/10/16-19:48:48.599841 7f189f7fe6c0 Delete type=3 #69
|
||||
2025/10/16-19:48:48.599924 7f189f7fe6c0 Delete type=0 #71
|
||||
2025/10/16-19:50:49.586198 7f189e7fc6c0 Level-0 table #76: started
|
||||
2025/10/16-19:50:49.586239 7f189e7fc6c0 Level-0 table #76: 0 bytes OK
|
||||
2025/10/16-19:50:49.598518 7f189e7fc6c0 Delete type=0 #74
|
||||
2025/10/16-19:50:49.610365 7f189e7fc6c0 Manual compaction at level-0 from '!actors!0FQ6XaRi24OorI21' @ 72057594037927935 : 1 .. '!folders!vRnrOJqSMlxbSgyX' @ 0 : 0; will stop at (end)
|
||||
2025/10/18-17:56:08.089616 7f7b6ffff6c0 Recovering log #75
|
||||
2025/10/18-17:56:08.099835 7f7b6ffff6c0 Delete type=3 #73
|
||||
2025/10/18-17:56:08.099933 7f7b6ffff6c0 Delete type=0 #75
|
||||
2025/10/18-18:03:15.586602 7f7b6f3ff6c0 Level-0 table #80: started
|
||||
2025/10/18-18:03:15.586654 7f7b6f3ff6c0 Level-0 table #80: 0 bytes OK
|
||||
2025/10/18-18:03:15.623769 7f7b6f3ff6c0 Delete type=0 #78
|
||||
2025/10/18-18:03:15.624032 7f7b6f3ff6c0 Manual compaction at level-0 from '!actors!0FQ6XaRi24OorI21' @ 72057594037927935 : 1 .. '!folders!vRnrOJqSMlxbSgyX' @ 0 : 0; will stop at (end)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
2025/10/15-21:50:26.444225 7f18a4ffa6c0 Recovering log #66
|
||||
2025/10/15-21:50:26.495317 7f18a4ffa6c0 Delete type=3 #64
|
||||
2025/10/15-21:50:26.495386 7f18a4ffa6c0 Delete type=0 #66
|
||||
2025/10/15-22:19:30.067316 7f189e7fc6c0 Level-0 table #72: started
|
||||
2025/10/15-22:19:30.067349 7f189e7fc6c0 Level-0 table #72: 0 bytes OK
|
||||
2025/10/15-22:19:30.103968 7f189e7fc6c0 Delete type=0 #70
|
||||
2025/10/15-22:19:30.104104 7f189e7fc6c0 Manual compaction at level-0 from '!actors!0FQ6XaRi24OorI21' @ 72057594037927935 : 1 .. '!folders!vRnrOJqSMlxbSgyX' @ 0 : 0; will stop at (end)
|
||||
2025/10/16-19:48:48.588685 7f189f7fe6c0 Recovering log #71
|
||||
2025/10/16-19:48:48.599841 7f189f7fe6c0 Delete type=3 #69
|
||||
2025/10/16-19:48:48.599924 7f189f7fe6c0 Delete type=0 #71
|
||||
2025/10/16-19:50:49.586198 7f189e7fc6c0 Level-0 table #76: started
|
||||
2025/10/16-19:50:49.586239 7f189e7fc6c0 Level-0 table #76: 0 bytes OK
|
||||
2025/10/16-19:50:49.598518 7f189e7fc6c0 Delete type=0 #74
|
||||
2025/10/16-19:50:49.610365 7f189e7fc6c0 Manual compaction at level-0 from '!actors!0FQ6XaRi24OorI21' @ 72057594037927935 : 1 .. '!folders!vRnrOJqSMlxbSgyX' @ 0 : 0; will stop at (end)
|
||||
|
||||
Binary file not shown.
@@ -75,6 +75,10 @@
|
||||
.main-stats {
|
||||
min-width: 25rem;
|
||||
max-width: 25rem;
|
||||
.encumbered {
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
.cargo,
|
||||
.capacity {
|
||||
|
||||
@@ -79,6 +79,31 @@
|
||||
disabled=isPlayMode
|
||||
}}
|
||||
</div>
|
||||
<div class="flexrow">
|
||||
{{#if isEncumbered}}
|
||||
{{formField
|
||||
systemFields.enc.fields.value
|
||||
value=system.enc.value
|
||||
rootId=partId
|
||||
disabled=true
|
||||
classes="encumbered"
|
||||
}}
|
||||
{{else}}
|
||||
{{formField
|
||||
systemFields.enc.fields.value
|
||||
value=system.enc.value
|
||||
rootId=partId
|
||||
disabled=true
|
||||
}}
|
||||
{{/if}}
|
||||
|
||||
{{formField
|
||||
systemFields.enc.fields.max
|
||||
value=system.enc.max
|
||||
rootId=partId
|
||||
disabled=isPlayMode
|
||||
}}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="robot-brain">
|
||||
|
||||
Reference in New Issue
Block a user