Skip to content

Double all income

Every missile earns twice as much. Two ways: a data file, or a script that stacks with other mods.

data/economy.json
{ "patch": { "main": { "income_base": 2 } } }

income_base is the cash a tier 1 missile earns per second; higher tiers scale from it. The base game has it at 1. See economy.

This sets the value. If another mod also sets income_base, the one that loads later wins and the log reports a conflict.

main.luau
-- Read the value as it stands (base game plus mods that loaded first) and
-- double it, so this stacks with other income mods.
local e = mod.data.get("economy", "main")
mod.data.patch("economy", "main", { income_base = e.income_base * 2 })

mod.data.get reads the value as it stands after every mod that loaded before yours. Doubling that stacks: two income mods give four times the income.