Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8a5d1cc1d8 | |||
| 99d9cb435f |
@@ -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-000091
|
||||
MANIFEST-000099
|
||||
|
||||
@@ -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/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,14 +1,7 @@
|
||||
2025/10/15-13:50:39.028219 7f189f7fe6c0 Recovering log #84
|
||||
2025/10/15-13:50:39.038979 7f189f7fe6c0 Delete type=3 #82
|
||||
2025/10/15-13:50:39.039047 7f189f7fe6c0 Delete type=0 #84
|
||||
2025/10/15-15:26:39.732570 7f189e7fc6c0 Level-0 table #89: started
|
||||
2025/10/15-15:26:39.736109 7f189e7fc6c0 Level-0 table #89: 12073 bytes OK
|
||||
2025/10/15-15:26:39.742312 7f189e7fc6c0 Delete type=0 #87
|
||||
2025/10/15-15:26:39.748688 7f189e7fc6c0 Manual compaction at level-0 from '!folders!AuBtSOj1mJmh88qx' @ 72057594037927935 : 1 .. '!items!zv9dwgL3p7ThQn7j' @ 0 : 0; will stop at '!items!zoE4ITyfl3od6hYD' @ 721 : 1
|
||||
2025/10/15-15:26:39.748706 7f189e7fc6c0 Compacting 1@0 + 1@1 files
|
||||
2025/10/15-15:26:39.753893 7f189e7fc6c0 Generated table #90@0: 316 keys, 126470 bytes
|
||||
2025/10/15-15:26:39.753929 7f189e7fc6c0 Compacted 1@0 + 1@1 files => 126470 bytes
|
||||
2025/10/15-15:26:39.760361 7f189e7fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
|
||||
2025/10/15-15:26:39.760492 7f189e7fc6c0 Delete type=2 #73
|
||||
2025/10/15-15:26:39.760637 7f189e7fc6c0 Delete type=2 #89
|
||||
2025/10/15-15:26:39.774069 7f189e7fc6c0 Manual compaction at level-0 from '!items!zoE4ITyfl3od6hYD' @ 721 : 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-000069
|
||||
MANIFEST-000077
|
||||
|
||||
@@ -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/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,14 +1,7 @@
|
||||
2025/10/15-13:50:39.042685 7f18a4ffa6c0 Recovering log #62
|
||||
2025/10/15-13:50:39.052767 7f18a4ffa6c0 Delete type=3 #60
|
||||
2025/10/15-13:50:39.052843 7f18a4ffa6c0 Delete type=0 #62
|
||||
2025/10/15-15:26:39.665250 7f189e7fc6c0 Level-0 table #67: started
|
||||
2025/10/15-15:26:39.668457 7f189e7fc6c0 Level-0 table #67: 12881 bytes OK
|
||||
2025/10/15-15:26:39.674498 7f189e7fc6c0 Delete type=0 #65
|
||||
2025/10/15-15:26:39.688322 7f189e7fc6c0 Manual compaction at level-0 from '!actors!0FQ6XaRi24OorI21' @ 72057594037927935 : 1 .. '!folders!vRnrOJqSMlxbSgyX' @ 0 : 0; will stop at '!folders!HobFutlnH6HPTEfT' @ 93 : 1
|
||||
2025/10/15-15:26:39.688334 7f189e7fc6c0 Compacting 1@0 + 1@1 files
|
||||
2025/10/15-15:26:39.692347 7f189e7fc6c0 Generated table #68@0: 78 keys, 62826 bytes
|
||||
2025/10/15-15:26:39.692380 7f189e7fc6c0 Compacted 1@0 + 1@1 files => 62826 bytes
|
||||
2025/10/15-15:26:39.698356 7f189e7fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
|
||||
2025/10/15-15:26:39.698484 7f189e7fc6c0 Delete type=2 #51
|
||||
2025/10/15-15:26:39.698645 7f189e7fc6c0 Delete type=2 #67
|
||||
2025/10/15-15:26:39.709845 7f189e7fc6c0 Manual compaction at level-0 from '!folders!HobFutlnH6HPTEfT' @ 93 : 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 {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<!-- <fieldset>
|
||||
<legend>{{localize "FTLNOMAD.Label.damages"}}</legend>
|
||||
<div class="text-center">
|
||||
<textarea
|
||||
@@ -26,7 +26,7 @@
|
||||
data-tooltip="{{localize 'FTLNOMAD.Tooltip.damages'}}"
|
||||
>{{system.damages}}</textarea>
|
||||
</div>
|
||||
</fieldset>
|
||||
</fieldset> -->
|
||||
|
||||
<fieldset class="section-editor">
|
||||
<legend>{{localize "FTLNOMAD.Label.description"}}</legend>
|
||||
|
||||
@@ -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">
|
||||
@@ -86,11 +111,10 @@
|
||||
<div class="flexrow">
|
||||
<textarea
|
||||
cols="64"
|
||||
rows="5"
|
||||
rows="2"
|
||||
name="system.brain"
|
||||
data-tooltip="{{localize 'FTLNOMAD.Tooltip.brain'}}"
|
||||
disabled="isPlayMode"
|
||||
>{{system.brain}}</textarea>
|
||||
{{#if isPlayMode}}disabled{{/if}}>{{system.brain}}</textarea>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user