Add Life Support, CP Gain fields to ship sheet.

This commit is contained in:
Karlinator
2021-02-08 23:51:12 +01:00
parent 982b06cd1f
commit b58f06f59a
5 changed files with 29 additions and 12 deletions
@@ -1057,7 +1057,7 @@ input[type=text].sheet-inherit {
}
.sheet-ship {
margin-top: -20px;
grid: auto/ 2fr 1fr 1fr;
grid: auto/ 4fr 3fr 2fr;
.sheet-menus {
h3 { line-height: 1 }
button[type=roll].btn { line-height: 1 }
@@ -1077,12 +1077,20 @@ input[type=text].sheet-inherit {
}
.sheet-data {
display: grid;
grid: auto / repeat(3, 1fr);
grid: auto / repeat(6, 1fr);
.sheet-text-input, .sheet-text-input input[type=number] { text-align: center }
.sheet-duo {
grid-column-start: 1;
grid-column-end: 3;
}
}
.sheet-trio {
grid-column-start: 1;
grid-column-end: 3;
grid-column-start: 3;
grid-column-end: 7;
grid: auto / 0 1fr 5px 1fr 5px 1fr 0
}
.sheet-duo {
grid: auto / 0 1fr 5px 1fr 0
}
.sheet-stats {
display: grid;
@@ -36,9 +36,22 @@ input(type="hidden", name="attr_ship_vehicle_type", value="SHIP").input-type
+text-input("ship_maintenance_cost", "MAINTENANCE COST").col20.grow
+text-input("ship_last_maintenance", "LAST_MAINTENANCE").col20.grow
.data.core-box-text
+text-input-duo(
"ship_fuel",
"ship_fuel_max",
"FUEL",
{type: "number", min: 0, value: 0})(type="number" min="0" value="0")
.vehicle-type.vehicle-type-ship.vehicle-type-custom Fuel
+text-input("ship_speed", "SPEED")(type="number", min="0")
+text-input("ship_ac", "AC")(type="number", min="0")
+text-input("ship_armor", "ARMOR")(type="number", min="0")
+text-input("ship_command_points", "CP_GAIN")(type="number", min="0", value="0") CP Gain
+text-input-duo(
"ship_life_support",
"ship_life_support_max",
"LIFE_SUPPORT",
{type: "number", min: 0, value: 0})(type="number" min="0" value="0")
.vehicle-type.vehicle-type-ship.vehicle-type-custom Life Support
+text-input-trio(
"ship_crew_min",
"ship_crew",
@@ -47,12 +60,6 @@ input(type="hidden", name="attr_ship_vehicle_type", value="SHIP").input-type
{type: "number", min: 0},
{type: "number", min: 0})(type="number", min="0")
.vehicle-type.vehicle-type-ship.vehicle-type-custom Crew Min/Current/Max
+text-input-duo(
"ship_fuel",
"ship_fuel_max",
"FUEL",
{type: "number", min: 0})(type="number" value="0")
.vehicle-type.vehicle-type-ship.vehicle-type-custom Fuel
//+text-input("ship_crew_min", "CREW_MIN")(type="number", min="0").vehicle-type.vehicle-type-ship.vehicle-type-custom
//+text-input("ship_crew", "CURRENT")(type="number", min="0", value="0").vehicle-type.vehicle-type-ship.vehicle-type-custom
//+text-input("ship_crew_max", "MAX")(type="number", min="0").vehicle-type.vehicle-type-ship.vehicle-type-custom