Add adamges field to starship/vehicles
All checks were successful
Release Creation / build (release) Successful in 1m26s
All checks were successful
Release Creation / build (release) Successful in 1m26s
This commit is contained in:
@@ -179,6 +179,17 @@ i.fvtt-ftl-nomad {
|
|||||||
min-width: 180px;
|
min-width: 180px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
/*.character-dmax-edit {
|
||||||
|
input {
|
||||||
|
display: flex;
|
||||||
|
width: 60px;
|
||||||
|
font-size: calc(var(--font-size-standard) * 1.4);
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0 5px 0 5px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}*/
|
||||||
}
|
}
|
||||||
.fvtt-ftl-nomad .character-main .character-pc .character-left .character-left-image {
|
.fvtt-ftl-nomad .character-main .character-pc .character-left .character-left-image {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -211,15 +222,6 @@ i.fvtt-ftl-nomad {
|
|||||||
.fvtt-ftl-nomad .character-main .character-pc .character-left .character-dmax .form-fields {
|
.fvtt-ftl-nomad .character-main .character-pc .character-left .character-dmax .form-fields {
|
||||||
flex: none;
|
flex: none;
|
||||||
}
|
}
|
||||||
.fvtt-ftl-nomad .character-main .character-pc .character-left .character-dmax-edit input {
|
|
||||||
display: flex;
|
|
||||||
width: 60px;
|
|
||||||
font-size: calc(var(--font-size-standard) * 1.4);
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 0 5px 0 5px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.fvtt-ftl-nomad .character-main .character-pc .character-right {
|
.fvtt-ftl-nomad .character-main .character-pc .character-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -251,7 +253,7 @@ i.fvtt-ftl-nomad {
|
|||||||
min-width: 500px;
|
min-width: 500px;
|
||||||
}
|
}
|
||||||
.fvtt-ftl-nomad .character-main .character-pc-edit {
|
.fvtt-ftl-nomad .character-main .character-pc-edit {
|
||||||
min-width: 650px;
|
min-width: 500px;
|
||||||
}
|
}
|
||||||
.fvtt-ftl-nomad .character-main .character-skills {
|
.fvtt-ftl-nomad .character-main .character-skills {
|
||||||
background-color: var(--color-light-1);
|
background-color: var(--color-light-1);
|
||||||
@@ -298,7 +300,7 @@ i.fvtt-ftl-nomad {
|
|||||||
min-width: 225px;
|
min-width: 225px;
|
||||||
}
|
}
|
||||||
.fvtt-ftl-nomad .character-main .character-skill-edit {
|
.fvtt-ftl-nomad .character-main .character-skill-edit {
|
||||||
min-width: 400px;
|
min-width: 225px;
|
||||||
}
|
}
|
||||||
.fvtt-ftl-nomad .character-biography {
|
.fvtt-ftl-nomad .character-biography {
|
||||||
background-color: var(--color-light-1);
|
background-color: var(--color-light-1);
|
||||||
@@ -944,7 +946,7 @@ i.fvtt-ftl-nomad {
|
|||||||
min-width: 500px;
|
min-width: 500px;
|
||||||
}
|
}
|
||||||
.fvtt-ftl-nomad .vehicle-main .vehicle-pc-edit {
|
.fvtt-ftl-nomad .vehicle-main .vehicle-pc-edit {
|
||||||
min-width: 650px;
|
min-width: 500px;
|
||||||
}
|
}
|
||||||
.fvtt-ftl-nomad .vehicle-description {
|
.fvtt-ftl-nomad .vehicle-description {
|
||||||
background-color: var(--color-light-1);
|
background-color: var(--color-light-1);
|
||||||
@@ -1227,7 +1229,7 @@ i.fvtt-ftl-nomad {
|
|||||||
min-width: 500px;
|
min-width: 500px;
|
||||||
}
|
}
|
||||||
.fvtt-ftl-nomad .starship-main .starship-pc-edit {
|
.fvtt-ftl-nomad .starship-main .starship-pc-edit {
|
||||||
min-width: 650px;
|
min-width: 500px;
|
||||||
}
|
}
|
||||||
.fvtt-ftl-nomad .starship-description {
|
.fvtt-ftl-nomad .starship-description {
|
||||||
background-color: var(--color-light-1);
|
background-color: var(--color-light-1);
|
||||||
@@ -1486,7 +1488,7 @@ i.fvtt-ftl-nomad {
|
|||||||
min-width: 500px;
|
min-width: 500px;
|
||||||
}
|
}
|
||||||
.fvtt-ftl-nomad .creature-main .creature-pc-edit {
|
.fvtt-ftl-nomad .creature-main .creature-pc-edit {
|
||||||
min-width: 650px;
|
min-width: 500px;
|
||||||
}
|
}
|
||||||
.fvtt-ftl-nomad .creature-main .creature-skills {
|
.fvtt-ftl-nomad .creature-main .creature-skills {
|
||||||
background-color: var(--color-light-1);
|
background-color: var(--color-light-1);
|
||||||
@@ -1533,7 +1535,7 @@ i.fvtt-ftl-nomad {
|
|||||||
min-width: 225px;
|
min-width: 225px;
|
||||||
}
|
}
|
||||||
.fvtt-ftl-nomad .creature-main .creature-skill-edit {
|
.fvtt-ftl-nomad .creature-main .creature-skill-edit {
|
||||||
min-width: 400px;
|
min-width: 225px;
|
||||||
}
|
}
|
||||||
.fvtt-ftl-nomad .creature-biography {
|
.fvtt-ftl-nomad .creature-biography {
|
||||||
background-color: var(--color-light-1);
|
background-color: var(--color-light-1);
|
||||||
|
|||||||
@@ -336,6 +336,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Label": {
|
"Label": {
|
||||||
|
"damages": "Damages",
|
||||||
"modifications": "Modifications",
|
"modifications": "Modifications",
|
||||||
"abilities": "Abilities",
|
"abilities": "Abilities",
|
||||||
"Details": "Details",
|
"Details": "Details",
|
||||||
@@ -562,7 +563,8 @@
|
|||||||
"addLanguage" : "Add Language",
|
"addLanguage" : "Add Language",
|
||||||
"addPsionic" : "Add Psionic",
|
"addPsionic" : "Add Psionic",
|
||||||
"addCreatureAbility" : "Add Creature Ability",
|
"addCreatureAbility" : "Add Creature Ability",
|
||||||
"addCreatureTrait" : "Add Creature Trait"
|
"addCreatureTrait" : "Add Creature Trait",
|
||||||
|
"damages": "Enter current damages suffered"
|
||||||
},
|
},
|
||||||
"Vehicle": {
|
"Vehicle": {
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
|
|||||||
@@ -3,13 +3,13 @@ import FTLNomadActorSheet from "./base-actor-sheet.mjs"
|
|||||||
export default class FTLNomadCreatureSheet extends FTLNomadActorSheet {
|
export default class FTLNomadCreatureSheet extends FTLNomadActorSheet {
|
||||||
/** @override */
|
/** @override */
|
||||||
static DEFAULT_OPTIONS = {
|
static DEFAULT_OPTIONS = {
|
||||||
classes: ["npc"],
|
classes: ["creature"],
|
||||||
position: {
|
position: {
|
||||||
width: 860,
|
width: 860,
|
||||||
height: 620,
|
height: 620,
|
||||||
},
|
},
|
||||||
window: {
|
window: {
|
||||||
contentClasses: ["npc-content"],
|
contentClasses: ["creature-content"],
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
createTrait: FTLNomadCreatureSheet.#onCreateTrait,
|
createTrait: FTLNomadCreatureSheet.#onCreateTrait,
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export default class FTLNomadProtagonist extends foundry.abstract.TypeDataModel
|
|||||||
schema.health = new fields.SchemaField({
|
schema.health = new fields.SchemaField({
|
||||||
staminaValue: new fields.NumberField({ ...requiredInteger, initial: 1, min: 0 }),
|
staminaValue: new fields.NumberField({ ...requiredInteger, initial: 1, min: 0 }),
|
||||||
staminaMax: new fields.NumberField({ ...requiredInteger, initial: 1, min: 0 }),
|
staminaMax: new fields.NumberField({ ...requiredInteger, initial: 1, min: 0 }),
|
||||||
wounds: new fields.NumberField({ ...requiredInteger, initial: 1, min: 0 }),
|
wounds: new fields.NumberField({ ...requiredInteger, initial:0, min: 0 }),
|
||||||
triageResults: new fields.StringField({ required: true, nullable: false, initial: "none", choices: SYSTEM.TRIAGE_RESULTS })
|
triageResults: new fields.StringField({ required: true, nullable: false, initial: "none", choices: SYSTEM.TRIAGE_RESULTS })
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,8 @@ export default class FTLNomadStarship extends foundry.abstract.TypeDataModel {
|
|||||||
schema.travelMultiplier = new fields.NumberField({ required: true, initial: 1, min: 0 })
|
schema.travelMultiplier = new fields.NumberField({ required: true, initial: 1, min: 0 })
|
||||||
schema.cost = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
schema.cost = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
||||||
schema.monthlyCost = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
schema.monthlyCost = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
||||||
|
schema.damages = new fields.StringField({ required: true, initial: "" })
|
||||||
|
|
||||||
schema.description = new fields.HTMLField({ required: true, textSearch: true })
|
schema.description = new fields.HTMLField({ required: true, textSearch: true })
|
||||||
schema.modifications = new fields.HTMLField({ required: true, textSearch: true })
|
schema.modifications = new fields.HTMLField({ required: true, textSearch: true })
|
||||||
schema.notes = new fields.HTMLField({ required: true, textSearch: true })
|
schema.notes = new fields.HTMLField({ required: true, textSearch: true })
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export default class FTLNomadVehicle extends foundry.abstract.TypeDataModel {
|
|||||||
const schema = {}
|
const schema = {}
|
||||||
|
|
||||||
schema.agility = new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
schema.agility = new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
||||||
schema.armor = new fields.StringField({ required: true, initial: 0, min:0 })
|
schema.armor = new fields.StringField({ required: true, initial: "" })
|
||||||
schema.cargo = new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
schema.cargo = new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
||||||
schema.crew = new fields.NumberField({ ...requiredInteger, initial: 1, min: 1 })
|
schema.crew = new fields.NumberField({ ...requiredInteger, initial: 1, min: 1 })
|
||||||
schema.force = new fields.NumberField({ ...requiredInteger, initial: 1, min: 1 })
|
schema.force = new fields.NumberField({ ...requiredInteger, initial: 1, min: 1 })
|
||||||
@@ -16,6 +16,7 @@ export default class FTLNomadVehicle extends foundry.abstract.TypeDataModel {
|
|||||||
schema.speed = new fields.StringField({ required: true, initial: "1d6" })
|
schema.speed = new fields.StringField({ required: true, initial: "1d6" })
|
||||||
schema.techAge = new fields.StringField({ required: true, initial: "1d6" })
|
schema.techAge = new fields.StringField({ required: true, initial: "1d6" })
|
||||||
schema.tonnage = new fields.NumberField({ required: true, initial: 1, min: 0 })
|
schema.tonnage = new fields.NumberField({ required: true, initial: 1, min: 0 })
|
||||||
|
schema.damages = new fields.StringField({ required: true, initial: "" })
|
||||||
|
|
||||||
schema.cost = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
schema.cost = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
flex: none;
|
flex: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.character-dmax-edit {
|
/*.character-dmax-edit {
|
||||||
input {
|
input {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 60px;
|
width: 60px;
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
padding: 0 5px 0 5px;
|
padding: 0 5px 0 5px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.character-right {
|
.character-right {
|
||||||
@@ -107,7 +107,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.character-pc-edit {
|
.character-pc-edit {
|
||||||
min-width: 650px;
|
min-width: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.character-skills {
|
.character-skills {
|
||||||
@@ -158,7 +158,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.character-skill-edit {
|
.character-skill-edit {
|
||||||
min-width: 400px;
|
min-width: 225px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -116,7 +116,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.creature-pc-edit {
|
.creature-pc-edit {
|
||||||
min-width: 650px;
|
min-width: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.creature-skills {
|
.creature-skills {
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.creature-skill-edit {
|
.creature-skill-edit {
|
||||||
min-width: 400px;
|
min-width: 225px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -145,7 +145,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.starship-pc-edit {
|
.starship-pc-edit {
|
||||||
min-width: 650px;
|
min-width: 500px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -111,7 +111,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.vehicle-pc-edit {
|
.vehicle-pc-edit {
|
||||||
min-width: 650px;
|
min-width: 500px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<fieldset class="character-hp">
|
<fieldset class="character-hp">
|
||||||
<legend>{{localize "FTLNOMAD.Label.Stamina"}}</legend>
|
<legend>{{localize "FTLNOMAD.Label.Stamina"}}</legend>
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
{{formField systemFields.health.fields.staminaValue value=health.staminaValue}}
|
{{formField systemFields.health.fields.staminaValue value=system.health.staminaValue}}
|
||||||
{{formField systemFields.health.fields.staminaMax value=system.health.staminaMax rootId=partId disabled=true}}
|
{{formField systemFields.health.fields.staminaMax value=system.health.staminaMax rootId=partId disabled=true}}
|
||||||
</div>
|
</div>
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
<section class="tab starship-{{tab.id}} {{tab.cssClass}}" data-tab="{{tab.id}}" data-group="{{tab.group}}">
|
<section class="tab starship-{{tab.id}} {{tab.cssClass}}" data-tab="{{tab.id}}" data-group="{{tab.group}}">
|
||||||
|
|
||||||
|
<fieldset>
|
||||||
|
<legend>{{localize "FTLNOMAD.Label.damages"}}</legend>
|
||||||
|
<textarea class="form-control" rows="5" name="system.damages"
|
||||||
|
data-tooltip="{{localize "FTLNOMAD.Tooltip.damages"}}">{{system.damages}}</textarea>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "FTLNOMAD.Label.description"}}</legend>
|
<legend>{{localize "FTLNOMAD.Label.description"}}</legend>
|
||||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
<section class="tab vehicle-{{tab.id}} {{tab.cssClass}}" data-tab="{{tab.id}}" data-group="{{tab.group}}">
|
<section class="tab vehicle-{{tab.id}} {{tab.cssClass}}" data-tab="{{tab.id}}" data-group="{{tab.group}}">
|
||||||
|
|
||||||
|
<fieldset>
|
||||||
|
<legend>{{localize "FTLNOMAD.Label.damages"}}</legend>
|
||||||
|
<textarea class="form-control" rows="5" name="system.damages"
|
||||||
|
data-tooltip="{{localize "FTLNOMAD.Tooltip.damages"}}">{{system.damages}}</textarea>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "FTLNOMAD.Label.description"}}</legend>
|
<legend>{{localize "FTLNOMAD.Label.description"}}</legend>
|
||||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||||
|
|||||||
Reference in New Issue
Block a user