Variants
Missile variants (golden, rainbow…): how much more they earn and hit, and how often a merge makes one.
patchaddreplaceremove
| File | data/variants.json |
| Ids | pattern ^[a-z]+$; 3 in the base game |
Fields
Section titled “Fields”| Field | Type | Range | Example | What it does |
|---|---|---|---|---|
damage |
number | 0 to 1000000 | 1.5 golden |
Damage multiplier. |
income |
number | 0 to 1000000 | 2 golden |
Income multiplier. |
name |
text | 1 to 20 characters; @key allowed |
Golden golden |
Variant name. |
odds |
number | 0 to 1 | 0.02 golden |
Chance a merge makes this variant. |
Change a record
Section titled “Change a record”{ "patch": { "golden": { "odds": 0.05 } } }The same from main.luau, while the mod loads:
mod.data.patch("variants", "golden", { odds = 0.05 })Base records
Section titled “Base records”What the base game ships, before any mod.
| Id | name |
income |
damage |
odds |
|---|---|---|---|---|
golden |
Golden |
2 |
1.5 |
0.02 |
toxic |
Toxic |
1.5 |
2.5 |
0.01 |
plasma |
Plasma |
4 |
4 |
0.0025 |