hughe update

This commit is contained in:
2026-11-15 17:08:11 +01:00
parent 7a69651b6d
commit 319436a5f9
50 changed files with 1987 additions and 313 deletions

View File

@@ -29,7 +29,7 @@
RC.stats = build => {
const ch = part(build, 'chassis'), mo = part(build, 'motor'), wh = part(build, 'wheels');
const ar = part(build, 'armour'), we = part(build, 'weapon'), to = part(build, 'tower');
const ar = part(build, 'armour'), we = part(build, 'weapon'), to = part(build, 'tower'), gd = part(build, 'gadget');
const v = RC.validate(build);
const mass = Math.max(30, v.weight);
let value = 0;
@@ -46,7 +46,7 @@
push: wh ? wh.push : 1,
len, wid, h: ch ? ch.h : 0.42,
rad: Math.hypot(len, wid) / 2 * 0.9, // close to the body corners so robots do not clip through each other
weapon: we, tower: to,
weapon: we, tower: to, gadget: gd, armour: ar,
invertible: !!(wh && wh.invertible),
lowProfile: !!(ch && ch.lowProfile),
frontArmour: ch && ch.frontArmour ? ch.frontArmour : 0,