Added range field for mech weapons

This commit is contained in:
joesinghaus
2018-07-15 11:40:08 +02:00
parent ca3439c3a7
commit 98a15a6046
5 changed files with 12 additions and 6 deletions
+1
View File
@@ -41,6 +41,7 @@ Report any problems, suggestions, or features by [creating an issue](https://git
* Added drone tab
* Added weapon descriptions
* Added quantity for inventory, as well as proper support for Enc-1/3 gear
* Mech weapons now have range instead of ammo
### 2.2.0
@@ -972,6 +972,7 @@ input[type=number].sheet-inline-input {
.sheet-damage { width: 65px }
.sheet-duo { width: 80px }
.sheet-qualities { width: calc(100% - 195px) }
.sheet-range { width: 70px }
}
.sheet-display {
text-indent: -10px;
@@ -89,6 +89,9 @@ input(type="hidden", name="attr_ship_vehicle_type", value="SHIP").input-type
span(name="attr_weapon_damage").space-after
span.space-after #[span(data-i18n="DAMAGE").lower];
span(name="attr_weapon_qualities")
input(type="hidden", name="attr_weapon_range", value="").hide-empty
span.vehicle-type.vehicle-type-mech
| ; #[span(data-i18n="RANGE")] #[span(name="attr_weapon_range")]
| ; #[span(data-i18n="POWER")] 
span(name="attr_weapon_power")
| , #[span(data-i18n="MASS")] 
@@ -97,7 +100,7 @@ input(type="hidden", name="attr_ship_vehicle_type", value="SHIP").input-type
span(name="attr_weapon_hardpoints")
| )
input(type="hidden", name="attr_weapon_use_ammo", value="0").hider
span
span.vehicle-type.vehicle-type-ship.vehicle-type-custom
| . #[span(data-i18n="AMMO")]: 
input(type="number", name="attr_weapon_ammo").inline-input
|  / 
@@ -111,8 +114,9 @@ input(type="hidden", name="attr_ship_vehicle_type", value="SHIP").input-type
input(type="checkbox", name="attr_weapon_broken", value="1")
+text-input("weapon_attack_bonus", "ATTACK_BONUS_SHORT")(type="number", value="0").center.number
+text-input("weapon_damage", "DAMAGE")(value="0").center.damage
+text-input("weapon_qualities", "QUALITIES").qualities
+text-input-duo("weapon_ammo", "weapon_ammo_max", "", {min: "0"})(min="0")
+text-input("weapon_qualities", "QUALITIES").qualities.grow
+text-input("weapon_range", "RANGE").range.vehicle-type.vehicle-type-mech
+text-input-duo("weapon_ammo", "weapon_ammo_max", "", {min: "0"})(min="0").vehicle-type.vehicle-type-ship.vehicle-type-custom
label.label
input(type="checkbox", name="attr_weapon_use_ammo", value="{{ammo=[[@{weapon_ammo} - 1]] / @{weapon_ammo_max}}}")
span(data-i18n="AMMO")
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long