hughe update
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user