view update

This commit is contained in:
2026-11-17 14:17:50 +01:00
parent 3e565cf8c7
commit e0496fa089
45 changed files with 2024 additions and 149 deletions

View File

@@ -139,6 +139,58 @@
{ id: 'overlord', name: 'Overlord', style: 'flanker', skill: 0.95, prize: 1450,
build: { chassis: 'discus', motor: 'comet', wheels: 'rubber', battery: 'lipo', armour: 'steel', weapon: 'spinner', tower: null, gadget: 'righter' }, paint: pal(0x101418, 0xff3030) },
];
// --- lightweight league (max 60 kg): quick, fragile, cheap ---
RC.LEAGUE_LIGHT = [
{ id: 'tinflea', name: 'Tin Flea', style: 'brawler', skill: 0.1, prize: 200,
build: { chassis: 'cage', motor: 'sparky', wheels: 'rubber', battery: 'lead', armour: null, weapon: 'wedge', tower: null }, paint: pal(0x9aa3ad, 0xf2c230) },
{ id: 'sparrow', name: 'Sparrow', style: 'flanker', skill: 0.18, prize: 280,
build: { chassis: 'crate', motor: 'sparky', wheels: 'rubber', battery: 'lead', armour: null, weapon: 'lance', tower: null }, paint: pal(0x2e9c8f, 0xffffff) },
{ id: 'needle', name: 'Needle', style: 'brawler', skill: 0.3, prize: 370,
build: { chassis: 'cage', motor: 'hornet', wheels: 'omni', battery: 'nicd', armour: 'mesh', weapon: 'saw', tower: null }, paint: pal(0xd8452b, 0x15171b) },
{ id: 'jackrabbit', name: 'Jackrabbit', style: 'pusher', skill: 0.4, prize: 470,
build: { chassis: 'doorstop', motor: 'sparky', wheels: 'bigtyre', battery: 'nicd', armour: null, weapon: 'lifter', tower: null }, paint: pal(0x5fae3b, 0xf2c230) },
{ id: 'switchblade', name: 'Switchblade', style: 'flanker', skill: 0.52, prize: 590,
build: { chassis: 'hexpod', motor: 'hornet', wheels: 'omni', battery: 'lipo', armour: 'titan', weapon: 'wedge', tower: null }, paint: pal(0x6a3fb0, 0xe6e6e6) },
{ id: 'wasp', name: 'Wasp', style: 'brawler', skill: 0.64, prize: 720,
build: { chassis: 'fang', motor: 'hornet', wheels: 'rubber', battery: 'lipo', armour: null, weapon: 'lance', tower: null, gadget: 'righter' }, paint: pal(0xf2c230, 0x15171b) },
{ id: 'firefly', name: 'Firefly', style: 'gunner', skill: 0.78, prize: 900,
build: { chassis: 'crate', motor: 'comet', wheels: 'omni', battery: 'lipo', armour: null, weapon: 'saw', tower: 'flamer' }, paint: pal(0xff7a1a, 0x3a3d44) },
{ id: 'pinpoint', name: 'Pinpoint', style: 'flanker', skill: 0.92, prize: 1150,
build: { chassis: 'fang', motor: 'comet', wheels: 'rubber', battery: 'lipo', armour: null, weapon: 'mace', tower: null }, paint: pal(0x101418, 0x4fa8ff) },
];
// --- heavyweight league (max 130 kg): slow, armoured, brutal ---
RC.LEAGUE_HEAVY = [
{ id: 'bulldozer', name: 'Bulldozer', style: 'pusher', skill: 0.14, prize: 420,
build: { chassis: 'bulwark', motor: 'bulldog', wheels: 'tracks', battery: 'lead', armour: 'steel', weapon: 'wedge', tower: null }, paint: pal(0xf2c230, 0x15171b) },
{ id: 'anvil', name: 'Anvil', style: 'brawler', skill: 0.26, prize: 540,
build: { chassis: 'plough', motor: 'bulldog', wheels: 'studs', battery: 'nicd', armour: 'steel', weapon: 'lance', tower: null }, paint: pal(0x8c8c8c, 0xd8452b) },
{ id: 'boilerplate', name: 'Boilerplate', style: 'brawler', skill: 0.38, prize: 680,
build: { chassis: 'boiler', motor: 'hornet', wheels: 'drumwh', battery: 'nicd', armour: 'spiked', weapon: 'hammer', tower: null }, paint: pal(0x5a5048, 0xff7a1a) },
{ id: 'grinder', name: 'Grinder', style: 'brawler', skill: 0.5, prize: 850,
build: { chassis: 'discus', motor: 'comet', wheels: 'tracks', battery: 'lipo', armour: 'ceramic', weapon: 'drum', tower: null }, paint: pal(0x3a3d44, 0x6dff9e) },
{ id: 'juggernaut', name: 'Juggernaut', style: 'pusher', skill: 0.62, prize: 1050,
build: { chassis: 'bulwark', motor: 'bulldog', wheels: 'tracks', battery: 'liion', armour: 'hardox', weapon: 'crusher', tower: null, gadget: 'repair' }, paint: pal(0xc0392b, 0xf2c230) },
{ id: 'warhound', name: 'Warhound', style: 'gunner', skill: 0.74, prize: 1300,
build: { chassis: 'plough', motor: 'hornet', wheels: 'studs', battery: 'liion', armour: 'ceramic', weapon: 'mace', tower: 'flamer', gadget: 'shield' }, paint: pal(0x6a3fb0, 0xffa020) },
{ id: 'colossus', name: 'Colossus', style: 'brawler', skill: 0.86, prize: 1600,
build: { chassis: 'scarab', motor: 'comet', wheels: 'tracks', battery: 'supercap', armour: 'hardox', weapon: 'spinner', tower: 'zapper' }, paint: pal(0x2b2f36, 0x4fa8ff) },
{ id: 'doomsday', name: 'Doomsday', style: 'flanker', skill: 0.97, prize: 2000,
build: { chassis: 'plough', motor: 'bulldog', wheels: 'tracks', battery: 'supercap', armour: 'hardox', weapon: 'vdisc', tower: 'swarm', gadget: 'mines' }, paint: pal(0x101418, 0xff3030) },
];
RC.LEAGUES = { light: RC.LEAGUE_LIGHT, medium: RC.LEAGUE, heavy: RC.LEAGUE_HEAVY };
// Swap the active class: RC.LEAGUE and the weight limit follow, like RC.setArena does for arenas.
RC.setClass = id => {
const c = RC.CLASSES.find(x => x.id === id) || RC.CLASSES[1];
RC.CLASS = c.id;
RC.WEIGHT_LIMIT = c.max;
RC.LEAGUE = RC.LEAGUES[c.id];
return c;
};
RC.CLASS = 'medium';
RC.DUMMY = { id: 'dummy', name: 'Dummy', style: 'dummy', skill: 0, prize: 0,
build: { chassis: 'crate', motor: 'sparky', wheels: 'rubber', battery: 'lead', armour: 'steel', weapon: null, tower: null }, paint: pal(0x8c8c8c, 0xff7a1a) };