From 6ecf1e7b961bbe175bd0f13205fcfcee4431bf46 Mon Sep 17 00:00:00 2001
From: supervj <64861570+supervj@users.noreply.github.com>
Date: Sat, 1 May 2021 23:43:24 -0400
Subject: [PATCH] Split Hull and Shield
Made new properties instead of using the Character values since there is already logic built into them that is fighting what we want to do.
Also added Power dice structure
---
template.json | 53 +++++++++++++++++++------
templates/actors/newActor/starship.html | 18 ++++-----
2 files changed, 50 insertions(+), 21 deletions(-)
diff --git a/template.json b/template.json
index 5dd69951..04b56318 100644
--- a/template.json
+++ b/template.json
@@ -419,25 +419,54 @@
"dr": 0,
"engpow": 1,
"exhaustion": 0,
- "hd": "",
- "hp": {
- "value": 10,
- "max": 10,
- "formula": "",
- "temp": 0,
- "tempmax": 0
+ "hulldie": "",
+ "hulldice": 0,
+ "hull": {
+ "value": 0,
+ "max": 0,
+ "formula": ""
+ },
+ "shlddie": "",
+ "shlddice": 0,
+ "shld": {
+ "value": 0,
+ "max": 0,
+ "formula": ""
},
"hsm": 1,
"mods": {
"open": 10,
"max": 10
},
- "pd": "",
- "sd": "",
- "shieldpow": 1,
- "sp": {
- "formula": ""
+ "pwrdice": {
+ "pwrdie": "",
+ "recovery": 1,
+ "central": {
+ "value": 0,
+ "max": 0
+ },
+ "comms": {
+ "value": 0,
+ "max": 0
+ },
+ "engines": {
+ "value": 0,
+ "max": 0
+ },
+ "shields": {
+ "value": 0,
+ "max": 0
+ },
+ "sensors": {
+ "value": 0,
+ "max": 0
+ },
+ "weapons": {
+ "value": 0,
+ "max": 0
+ }
},
+ "shieldpow": 1,
"sscap": 0,
"suites": {
"open": 0,
diff --git a/templates/actors/newActor/starship.html b/templates/actors/newActor/starship.html
index 88169e89..3e760a7c 100644
--- a/templates/actors/newActor/starship.html
+++ b/templates/actors/newActor/starship.html
@@ -37,19 +37,19 @@
- {{!-- HIT POINTS --}}
+ {{!-- HULL POINTS --}}
@@ -57,15 +57,15 @@