Skip to content

Arsenal

The era-gated Laser SAM, Submarine and Sonar. Eras come from an island’s best tier ever: MODERN, then ATOMIC at era_atomic, FUTURE at era_future, SPACE at era_space. The Submarine is the ships record sub and the Sonar is the buildings record sonar: tune their price, HP and speed there.

patchaddreplaceremove
File data/arsenal.json
Ids one record: main
Field Type Range Base value What it does
depth_reload_k number 0 to 1000000 1.3 Patrol boats and destroyers drop depth charges every (their reload x this) seconds.
era_atomic whole number 1 to 31 9 Best tier that starts the ATOMIC era.
era_future whole number 1 to 31 13 Best tier that starts the FUTURE era.
era_space whole number 1 to 31 17 Best tier that starts the SPACE era.
hit_sonar number 0 to 1 0.45 Hit chance on a submerged sub the Sonar sees.
hit_sonar_per number 0 to 1 0.04 Extra hit chance per Sonar level.
hit_surfaced number 0 to 1 0.75 Hit chance on a surfaced sub.
laser_chance number 0 to 1 0.85 Beam hit chance at LASER 1.
laser_chance_per number 0 to 1 0.02 Extra hit chance per LASER level.
laser_cost_k number 0 to 1000000 3 LASER level prices are the Interceptor curve times this.
laser_from whole number 1 to 49 12 Interceptor levels above this are LASER levels.
laser_hits whole number 0 to 20 2 Armour one beam burns at LASER 1 (never more than armour - 1).
laser_hits_step whole number 1 to 30 3 One more armour burnt every this many LASER levels.
laser_levels whole number 0 to 30 6 LASER levels on top. The Interceptor max becomes laser_from + laser_levels, at most 50.
laser_min_armor whole number 1 to 20 2 The beam skips missiles with less armour than this.
laser_recharge number 0 to 1000000 10 Seconds between beams at LASER 1.
laser_recharge_min number 0 to 1000000 4 Shortest recharge.
laser_recharge_per number 0 to 1000000 1 Seconds less per LASER level.
laser_tier whole number 1 to 31 17 Best tier ever that opens LASER levels.
sonar_reach number 0 to 1000000 70 Map pixels past the coast the Sonar sees at level 1.
sonar_reach_per number 0 to 1000000 10 Extra map pixels per Sonar level.
sonar_tier whole number 1 to 31 9 Best tier ever that opens the Sonar.
sub_blast number 0 to 1000000 0.45 Torpedo blast radius, times a missile’s.
sub_cap whole number 0 to 12 3 Most subs per island.
sub_power number 0 to 1 0.3 Share of a torpedo’s loot the attacker keeps.
sub_surface number 0 to 1000000 3 Seconds a sub stays surfaced after a torpedo.
sub_tier whole number 1 to 31 9 Best tier ever that opens the Submarine.
sub_tier_down whole number 0 to 19 2 A torpedo hits like a missile this many tiers under the owner’s best.
sub_torpedo_speed number 0 to 1000000 80 Torpedo speed, map pixels per second.
data/arsenal.json
{ "patch": { "main": { "sub_cap": 4 } } }

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

mod.data.patch("arsenal", "main", { sub_cap = 4 })