Skip to content

Ships

Patrol boat, Destroyer, Carrier and Submarine. Ships are built at the Dock. bay is how many missiles a ship carries (the Submarine carries torpedoes).

patchaddreplaceremove
File data/ships.json
Ids pattern ^[a-z]+$; 4 in the base game
Field Type Range Example What it does
bay whole number 0 to 12 1 patrol Missiles carried.
blurb text 1 to 120 characters; @key allowed Guards home. Shoots missiles and ships nearby. patrol One line under the name.
build number 0.5 to 3600 8 patrol Seconds to build.
cost number 0 to 1e12 600 patrol Cash price.
damage number 0 to 1e9 10 patrol Damage per shot.
hp number 1 to 1e9 60 patrol Hit points.
icon text 1 to 24 characters ship patrol Icon name from the game’s icon set.
name text 1 to 24 characters; @key allowed Patrol Boat patrol Name on the ship card.
range number 0 to 2000 90 patrol Gun range, map pixels.
reload number 0.1 to 600 1.6 patrol Seconds between shots.
speed number 1 to 1000 46 patrol Map pixels per second.
data/ships.json
{ "patch": { "destroyer": { "cost": 1500 } } }

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

mod.data.patch("ships", "destroyer", { cost = 1500 })

What the base game ships, before any mod.

Id name cost build hp speed range damage reload bay
patrol Patrol Boat 600 8 60 46 90 10 1.6 1
destroyer Destroyer 4000 18 180 34 130 26 2.4 2
carrier Carrier 18000 30 320 24 260 0 14 4
sub Submarine 9000 24 220 30 80 34 9 0