Skip to content

Superweapons

Superweapons, base and added. A new weapon runs on the console, art and sound of one of the six base weapons (base) and changes how it is sold and how much it does. Art and the shape of the strike stay the base weapon’s; for the last word on what a strike hits, use mod.weapons.on_plan.

patchaddreplaceremove
File data/superweapons.json
Ids pattern ^[a-z][a-z0-9]*$; 7 in the base game
Required to add base name short color price cooldown
Field Type Range Example What it does
base required one of droppod empstorm gravitywell meteorcaller sunlance starfall ion ion The base weapon whose console, art and rules it runs.
breather number 0 to 3600 Extra seconds of victim protection after the strike.
color required colour [r, g, b], each 0 to 255 [120, 240, 255] ion Weapon colour, [r, g, b].
cooldown required number 0 to 86400 300 ion Seconds the owner waits between their own shots.
enabled boolean true, false true ion false hides the weapon and takes it out of payouts.
kills whole number 0 to 50 Most missiles one strike destroys.
knock number 0 to 1 Share of the base weapon’s building hits kept, nearest the centre first.
milestone milestone { stat, at, text }; stat: launches blocked hits siloDamage wipes merges bestTier; text up to 30 characters; optional (removable) { "at": 10000, "stat": "siloDamage", "text": "SILO DAMAGE 10K" } ion One free charge the first time a stat reaches a number: { stat, at, text }.
name required text 1 to 24 characters; @key allowed ION CANNON ion Name in the store and the console.
payout_weight number 0 to 100 Weight in Silo payouts. Default 1 / price.
price required number 1 to 1000000 499 ion Store price scale.
rebuild number 0 to 20 Rebuild time of knocked buildings, times the base weapon’s.
scorch whole number 0 to 1000 Most missiles one strike scorches.
short required text 1 to 8 characters; @key allowed ION ion Short label on the HUD button.
silo_damage number 0 to 10 Silo damage, times the base weapon’s.
target_cooldown number 0 to 86400 Seconds before the same island can be hit again.
  • The cash price in a match is price x 40 x 1.55 for each best tier above 1.
  • The base weapon ion (the Ion cannon) can be patched and hooked, but it cannot be a base.
  • mod.data.get("superweapons", id) shows name, short, color, price, cooldown, enabled and the milestone, not the base weapon’s internal rules.
data/superweapons.json
{ "patch": { "sunlance": { "cooldown": 120 } } }

The same from main.luau, while the mod loads:

mod.data.patch("superweapons", "sunlance", { cooldown = 120 })
data/superweapons.json
{
"add": {
"solarflare": {
"base": "sunlance",
"color": [255, 170, 60],
"cooldown": 240,
"name": "Solar Flare",
"price": 600,
"short": "FLARE"
}
}
}

What the base game ships, before any mod.

Id name short price cooldown
ion ION CANNON ION 499 300
droppod DROP POD POD 99 120
empstorm EMP STORM EMP 149 150
gravitywell GRAVITY WELL GRAV 249 180
meteorcaller METEOR CALLER METEOR 349 210
sunlance SUN LANCE LANCE 499 240
starfall STARFALL ARRAY STARFALL 1000 360