Custom mods

These are modification you can add to your demo

```
"migrate": {
 "title": "Migrate",
 "desc": "Leave this planet and save your dome.",
 "cost": "iron=40",
 "requiresReplace": [
 "dome1",
 "dome2",
 "dome3",
 "dome4",
 "dome5" ],
 "requires": "dome99",
 "special": "true"
},

```
#by hello\_world (discord)

```
"swordAimLine": {
 "title": "True Sight",
 "desc": "The only way to discover the limits of the possible is to aim beyond them into the impossible",
 "cost": "iron=3",
 "upgrade": "swordAimLine=1",
 "requires": "sword"
 },

```
#by hellow\_world (discord)

### Enable "Dome damage reduction"

*Change "domeMeleeDamageReduction 1-3" objects in upgrades.json*

```
"domeMeleeDamageReduction1": {
 "title": "Hardening 1",
 "desc": "Harden the dome cupola to take less damage from monsters hits.",
 "cost": "sand=1",
 "upgrade": "domeMeleeDamageReduction=1",
 "requires": "domeHealth1",
 },
"domeMeleeDamageReduction2": {
 "title": "Hardening 2",
 "desc": "Harden the dome cupola to take less damage from monsters hits.",
 "cost": "sand=2",
 "upgrade": "domeMeleeDamageReduction=2",
 "requires": "domeMeleeDamageReduction1",
 },
"domeMeleeDamageReduction3": {
 "title": "Hardening 3",
 "desc": "Harden the dome cupola to take less damage from monsters hits.",
 "cost": "sand=3",
 "upgrade": "domeMeleeDamageReduction=3",
 "requires": "domeMeleeDamageReduction2",
 },

```
#by hellow\_world (discord)

### Enable alternative "Dome repair"

*Add "domeRepair 1-3" objects in upgrades.json*

```
"domeRepair1": {
 "title": "Repair 40%",
 "desc": "Repair your dome once for 40% of its health.",
 "cost": "iron=0",
 "requires": "domeHealth",
 "special": "true"
 },
"domeRepair2": {
 "title": "Repair 50%",
 "desc": "Repair your dome once for 50% of its health.",
 "cost": "iron=0",
 "requires": "domeRepair1",
 "special": "true"
 },
"domeRepair3": {
 "title": "Repair 60%",
 "desc": "Repair your dome once for 60% of its health.",
 "cost": "iron=0",
 "requires": "domeRepair2",
 "special": "true"
 },

```
#by hellow\_world (discord)

## Custom examples

In custom example we will create custom mode to add 2 builds setup.

in gamedata.yaml edit these code at the beggining

```
dome:
 domeMaxHealth: 800, 1400, 2000
 domeMeleeDamageReduction: 1.0, 0.85, 0.7, 0.55

player:
 playerDrillStrength: 0, 2, 7, 13, 33, 90, 1, 3, 9, 27, 81
 playerMaxSpeed: 20, 30, 36, 40, 55, 28, 36, 44, 52, 62
 playerSpeedLossPerCarry: 0.06, 0.026, 0.012, 0.005, 0.0018

monsters:
 waveInterval: 60.0, 54.0
 waveIntervalProgression: 36.0
 timeBetweenMonsters: 2.5, 1.8
 timeBetweenMonstersProgression: 1.5

```

in upgrades.json substitute these lines

```
 "drill1": {
 "title": "Drill Strength 1",
 "desc": "Increase the drills strength to dig faster.",
 "cost": "iron=4",
 "upgrade": "playerDrillStrength=1",
 "requires": "keeper1",
 "special": "true"
 },
 "drill2": {
 "title": "Drill Strength 2",
 "desc": "Increase the drills strength to dig faster.",
 "cost": "iron=8",
 "upgrade": "playerDrillStrength=2",
 "requires": "drill1",
 "special": "true"
 },
 "drill3": {
 "title": "Drill Strength 3",
 "desc": "Increase the drills strength to dig faster.",
 "cost": "iron=12",
 "upgrade": "playerDrillStrength=3",
 "requires": "drill2",
 "special": "true"
 },
 "drill4": {
 "title": "Drill Strength 4",
 "desc": "Increase the drills strength to dig faster.",
 "cost": "iron=16",
 "upgrade": "playerDrillStrength=4",
 "requires": "drill3",
 "special": "true"
 },
 "jetpackSpeed1": {
 "title": "Speed 1",
 "desc": "Improve the jetpack to move faster.",
 "cost": "iron=4",
 "upgrade": "playerMaxSpeed=1",
 "requires": "keeper1",
 "special": "true"
 },
 "jetpackSpeed2": {
 "title": "Speed 2",
 "desc": "Improve the jetpack to move faster.",
 "cost": "iron=8",
 "upgrade": "playerMaxSpeed=2",
 "requires": "jetpackSpeed1",
 "special": "true"
 },
 "jetpackSpeed3": {
 "title": "Speed 3",
 "desc": "Improve the jetpack to move faster.",
 "cost": "iron=12",
 "upgrade": "playerMaxSpeed=3",
 "requires": "jetpackSpeed2",
 "special": "true"
 },
"jetpackSpeed4": {
 "title": "Speed 4",
 "desc": "Improve the jetpack to move faster.",
 "cost": "iron=18",
 "upgrade": "playerMaxSpeed=4",
 "requires": "jetpackSpeed3",
 "locks": [
 "jetpackStrength4"
 ],
 "special": "true"
 },
 "jetpackStrength1": {
 "title": "Carry Strength 1",
 "desc": "Additional thrusters allow you to carry more resources.",
 "cost": "iron=4",
 "upgrade": "playerSpeedLossPerCarry=1",
 "requires": "keeper1"
 },
 "jetpackStrength2": {
 "title": "Carry Strength 2",
 "desc": "Additional thrusters allow you to carry more resources.",
 "cost": "iron=8",
 "upgrade": "playerSpeedLossPerCarry=2",
 "requires": "jetpackStrength1"
 },
 "jetpackStrength3": {
 "title": "Carry Strength 3",
 "desc": "Additional thrusters allow you to carry more resources.",
 "cost": "iron=12",
 "upgrade": "playerSpeedLossPerCarry=3",
 "requires": "jetpackStrength2",
 },
 "jetpackStrength4": {
 "title": "Carry Strength 4",
 "desc": "Additional thrusters allow you to carry more resources.",
 "cost": "iron=18",
 "upgrade": "playerSpeedLossPerCarry=4",
 "requires": "jetpackStrength3",
 "locks": [
 "jetpackSpeed4"
 ]
 },

```
with these code

```
 "choice1": {
 "title": "Drill build",
 "desc": "We decided we needed more power after all... although we didn't know that they would also adapt",
 "cost": "iron=0",
 "upgrade": "playerDrillStrength=1,timeBetweenMonsters=1",
 "requires": "keeper1",
 "locks": [
 "choice2"
 ],
 "special": "true"
 },
 "drill1": {
 "title": "Drill Strength 1",
 "desc": "Increase the drills strength to dig faster.",
 "cost": "iron=4",
 "upgrade": "playerDrillStrength=2",
 "requires": "choice1",
 "special": "true"
 },
 "drill2": {
 "title": "Drill Strength 2",
 "desc": "Increase the drills strength to dig faster.",
 "cost": "iron=8",
 "upgrade": "playerDrillStrength=3",
 "requires": "drill1",
 "special": "true"
 },
 "drill3": {
 "title": "Drill Strength 3",
 "desc": "Increase the drills strength to dig faster.",
 "cost": "iron=12",
 "upgrade": "playerDrillStrength=4",
 "requires": "drill2",
 "special": "true"
 },
 "drill4": {
 "title": "Drill Strength 4",
 "desc": "Increase the drills strength to dig faster.",
 "cost": "iron=16",
 "upgrade": "playerDrillStrength=5",
 "requires": "drill3",
 "special": "true"
 },

 "jetpackSpeed1": {
 "title": "Speed 1",
 "desc": "Improve the jetpack to move faster.",
 "cost": "iron=4",
 "upgrade": "playerMaxSpeed=1",
 "requires": "choice1",
 "special": "true"
 },
 "jetpackSpeed2": {
 "title": "Speed 2",
 "desc": "Improve the jetpack to move faster.",
 "cost": "iron=8",
 "upgrade": "playerMaxSpeed=2",
 "requires": "jetpackSpeed1",
 "special": "true"
 },
 "jetpackSpeed3": {
 "title": "Speed 3",
 "desc": "Improve the jetpack to move faster.",
 "cost": "iron=12",
 "upgrade": "playerMaxSpeed=3",
 "requires": "jetpackSpeed2",
 "special": "true"
 },
"jetpackSpeed4": {
 "title": "Speed 4",
 "desc": "Improve the jetpack to move faster.",
 "cost": "iron=18",
 "upgrade": "playerMaxSpeed=4",
 "requires": "jetpackSpeed3",
 "locks": [
 "jetpackStrength4",
 "jetpackSpeed8"
 ],
 "special": "true"
 },
 "choice2": {
 "title": "Speed Build",
 "desc": "Speed was always the way... although we didn't know that they would come sooner",
 "cost": "iron=0",
 "upgrade": "playerDrillStrength=6,waveInterval=1,playerMaxSpeed=5",
 "requires": "keeper1",
 "locks": [
 "choice1"
 ],
 "special": "true"
 },

 "jetpackSpeed5": {
 "title": "Speed 1",
 "desc": "Improve the jetpack to move faster.",
 "cost": "iron=4",
 "upgrade": "playerMaxSpeed=6",
 "requires": "choice2",
 "special": "true"
 },
 "jetpackSpeed6": {
 "title": "Speed 2",
 "desc": "Improve the jetpack to move faster.",
 "cost": "iron=8",
 "upgrade": "playerMaxSpeed=7",
 "requires": "jetpackSpeed5",
 "special": "true"
 },
 "jetpackSpeed7": {
 "title": "Speed 3",
 "desc": "Improve the jetpack to move faster.",
 "cost": "iron=12",
 "upgrade": "playerMaxSpeed=8",
 "requires": "jetpackSpeed6",
 "special": "true"
 },
"jetpackSpeed8": {
 "title": "Speed 4",
 "desc": "Improve the jetpack to move faster.",
 "cost": "iron=18",
 "upgrade": "playerMaxSpeed=9",
 "requires": "jetpackSpeed7",
 "locks": [
 "jetpackStrength4",
 "jetpackSpeed4"
 ],
 "special": "true"
 },

 "drill5": {
 "title": "Drill Strength 1",
 "desc": "Increase the drills strength to dig faster.",
 "cost": "iron=4",
 "upgrade": "playerDrillStrength=7",
 "requires": "choice2",
 "special": "true"
 },
 "drill6": {
 "title": "Drill Strength 2",
 "desc": "Increase the drills strength to dig faster.",
 "cost": "iron=8",
 "upgrade": "playerDrillStrength=8",
 "requires": "drill5",
 "special": "true"
 },
 "drill7": {
 "title": "Drill Strength 3",
 "desc": "Increase the drills strength to dig faster.",
 "cost": "iron=12",
 "upgrade": "playerDrillStrength=9",
 "requires": "drill6",
 "special": "true"
 },
 "drill8": {
 "title": "Drill Strength 4",
 "desc": "Increase the drills strength to dig faster.",
 "cost": "iron=16",
 "upgrade": "playerDrillStrength=10",
 "requires": "drill7",
 "special": "true"
 },

 "jetpackStrength1": {
 "title": "Carry Strength 1",
 "desc": "Additional thrusters allow you to carry more resources.",
 "cost": "iron=4",
 "upgrade": "playerSpeedLossPerCarry=1",
 "requires": "keeper1"
 },
 "jetpackStrength2": {
 "title": "Carry Strength 2",
 "desc": "Additional thrusters allow you to carry more resources.",
 "cost": "iron=8",
 "upgrade": "playerSpeedLossPerCarry=2",
 "requires": "jetpackStrength1"
 },
 "jetpackStrength3": {
 "title": "Carry Strength 3",
 "desc": "Additional thrusters allow you to carry more resources.",
 "cost": "iron=12",
 "upgrade": "playerSpeedLossPerCarry=3",
 "requires": "jetpackStrength2",
 },
 "jetpackStrength4": {
 "title": "Carry Strength 4",
 "desc": "Additional thrusters allow you to carry more resources.",
 "cost": "iron=18",
 "upgrade": "playerSpeedLossPerCarry=4",
 "requires": "jetpackStrength3",
 "locks": [
 "jetpackSpeed4",
 "jetpackSpeed7"
 ]
 },

```