From d95da6bfefbe47f9401726bb270c1eaa188c2c1a Mon Sep 17 00:00:00 2001 From: "Tim Evans (slaguru666)" Date: Wed, 27 May 2026 18:45:27 +0100 Subject: [PATCH] Seeded Unarmed Combat weapon item, map damageMultiplier in buildWeapon, and bump companion version to 0.7.2 for auto-seeding --- module.json | 2 +- module/sla-mothership-compendium.mjs | 3 ++- sla-data/equipment.json | 24 +++++++++++++++++++++++- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/module.json b/module.json index 7532cb9..1bf807c 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "id": "sla-mothership-compendium", "title": "SLA Mothership Companion", "description": "Seeds SLA Industries weapons, armour, gear, training references, species notes, skills, Ebb abilities, and SLA panic tables into SLA Mothership worlds.", - "version": "0.7.1", + "version": "0.7.2", "url": "https://github.com/slaguru666/sla_industries_MS", "manifest": "https://raw.githubusercontent.com/slaguru666/sla-mothership-compendium/main/module.json", "download": "https://github.com/slaguru666/sla-mothership-compendium/releases/latest/download/sla-mothership-compendium.zip", diff --git a/module/sla-mothership-compendium.mjs b/module/sla-mothership-compendium.mjs index 68af5d0..385e07c 100644 --- a/module/sla-mothership-compendium.mjs +++ b/module/sla-mothership-compendium.mjs @@ -603,7 +603,8 @@ function buildWeapon(entry, folder, iconMap) { rofText: entry.rofText ?? "", enc: Number(entry.enc ?? 0) || 0, price: entry.price ?? "", - notes: entry.notes ?? [] + notes: entry.notes ?? [], + damageMultiplier: Number(entry.damageMultiplier ?? 1) || 1 } }, flags: { [SYSTEM_ID]: { slaSeed: { key, kind: "weapon" } } } diff --git a/sla-data/equipment.json b/sla-data/equipment.json index af22e53..2629db2 100644 --- a/sla-data/equipment.json +++ b/sla-data/equipment.json @@ -712,12 +712,34 @@ "On success, -20% to actions for that round." ], "ammoTag": "HE", - "ammoLoadedType": "HE", "ammoReserveStd": 0, "ammoReserveAp": 0, "ammoReserveHe": 0, "ammoReserveHeap": 0, "ammoReserve": 0 + }, + { + "name": "Unarmed Combat", + "weaponType": "melee", + "skillRef": "", + "skillRefAlt": "", + "damage": "Str/10", + "db": 1, + "damageType": "crushing", + "reach": "Short", + "range": "Short", + "rof": 1, + "ammo": 0, + "hp": 0, + "special": "stun", + "hands": "1H", + "price": "none", + "enc": 0, + "notes": [ + "Unarmed melee combat (fists, kicks, throws).", + "Uses 'Str/10' base damage." + ], + "damageMultiplier": 1 } ], "armour": [