-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from gamrguy/master
Automatic racial techs
- Loading branch information
Showing
21 changed files
with
100 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
[ | ||
{ | ||
"op": "remove", | ||
"path": "/statusControllerSettings/resources/food/maxValue" | ||
}, | ||
{ | ||
"op": "add", | ||
"path": "/statusControllerSettings/resources/food/maxStat", | ||
"value": "maxFood" | ||
}, | ||
{ | ||
"op": "add", | ||
"path": "/statusControllerSettings/stats/maxFood", | ||
"value": { | ||
"baseValue": 70 | ||
} | ||
}, | ||
{ "op": "add", "path": "/defaultBlueprints/tier1/-", "value": {"item": "robosnax"} }, | ||
{ "op": "add", "path": "/defaultBlueprints/tier1/-", "value": {"item": "raceEffectEnabler"} }, | ||
{ "op": "add", "path": "/defaultBlueprints/tier1/-", "value": {"item": "meatkibble"} }, | ||
{ "op": "add", "path" : "/statusControllerSettings/primaryScriptSources/-" , "value" : "/scripts/raceEffects.lua" } | ||
|
||
{ | ||
"op": "remove", | ||
"path": "/statusControllerSettings/resources/food/maxValue" | ||
}, | ||
{ | ||
"op": "add", | ||
"path": "/statusControllerSettings/resources/food/maxStat", | ||
"value": "maxFood" | ||
}, | ||
{ | ||
"op": "add", | ||
"path": "/statusControllerSettings/stats/maxFood", | ||
"value": { "baseValue": 70 } | ||
}, | ||
{ "op" : "add", "path" : "/defaultBlueprints/tier1/-", "value" : {"item": "robosnax"} }, | ||
//{ "op" : "add", "path" : "/defaultBlueprints/tier1/-", "value" : {"item": "raceEffectEnabler"} }, | ||
{ "op" : "add", "path" : "/defaultBlueprints/tier1/-", "value" : {"item": "meatkibble"} }, | ||
{ "op" : "add", "path" : "/statusControllerSettings/primaryScriptSources/-" , "value" : "/scripts/raceEffects.lua" }, | ||
{ "op" : "add", "path" : "/companionsConfig/scripts/-", "value" : "/scripts/techHandler.lua" } | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
local FR_old_init = init | ||
|
||
function init() | ||
FR_old_init() | ||
local species = player.species() | ||
local _,speciesConfig = pcall( function () return root.assetJson(string.format("/species/%s.raceeffect", species)) end ) | ||
if speciesConfig and speciesConfig.tech then | ||
for _,tech in pairs(speciesConfig.tech) do | ||
local playerTechs = player.availableTechs() | ||
player.makeTechAvailable(tech) | ||
if #(player.availableTechs()) > #playerTechs then -- check to see if this added a tech (if not, we have it already) | ||
player.enableTech(tech) | ||
player.equipTech(tech) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,5 +95,6 @@ | |
} | ||
} | ||
} | ||
} | ||
}, | ||
"tech" : [ "flight_avali" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,5 +85,6 @@ | |
} | ||
} | ||
} | ||
} | ||
}, | ||
"tech" : [ "flight_avian" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,7 +98,6 @@ | |
] | ||
} | ||
], | ||
"special": [ | ||
"headlampcat" | ||
] | ||
"special": [ "headlampcat" ], | ||
"tech" : [ "veluuclaw" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,5 +129,6 @@ | |
], | ||
"special": [ | ||
"elduukharBonus" | ||
] | ||
], | ||
"tech" : [ "elduukharburst" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,5 +110,6 @@ | |
} | ||
] | ||
} | ||
] | ||
], | ||
"tech" : [ "huntersclaw" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,5 +87,6 @@ | |
}], | ||
"special": [ | ||
"darkregenfenerox" | ||
] | ||
], | ||
"tech" : [ "huntersclaw" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,5 +66,6 @@ | |
"baseMultiplier": 1.15 | ||
}] | ||
} | ||
] | ||
], | ||
"tech" : [ "minersclaw" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,5 +121,6 @@ | |
} | ||
], | ||
"weaponScripts": [], | ||
"special": [ ] | ||
"special": [ ], | ||
"tech" : [ "juuxharden" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,5 +82,6 @@ | |
}], | ||
"special": [ | ||
"kazdraBonus" | ||
] | ||
], | ||
"tech" : [ "dragonfireburst" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,5 +126,6 @@ | |
} | ||
} | ||
} | ||
} | ||
}, | ||
"tech" : [ "flight_moogle" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,5 +152,6 @@ | |
} | ||
} | ||
} | ||
} | ||
}, | ||
"tech" : [ "flight_avali" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,39 @@ | ||
{ | ||
"stats": [ | ||
{ | ||
"stat": "maxHealth", | ||
"baseMultiplier": 0.90 | ||
}, | ||
{ | ||
"stat": "maxEnergy", | ||
"baseMultiplier": 1.1 | ||
}, | ||
|
||
{ | ||
"stat": "foodDelta", | ||
"baseMultiplier": 1.25 | ||
}, | ||
{ | ||
"stat": "radiationburnImmunity", | ||
"amount": 1 | ||
}, | ||
{ | ||
"stat": "healingStatusImmunity", | ||
"amount": 1 | ||
} | ||
"stats" : [ | ||
{ "stat" : "maxHealth", "baseMultiplier" : 0.90 }, | ||
{ "stat" : "maxEnergy", "baseMultiplier" : 1.1 }, | ||
{ "stat" : "foodDelta", "baseMultiplier" : 1.25 }, | ||
{ "stat" : "radiationburnImmunity", "amount" : 1 }, | ||
{ "stat" : "healingStatusImmunity", "amount" : 1 } | ||
], | ||
"diet" : "entity", | ||
"special": [ "radienFoodBoost" ], | ||
"special" : [ "radienFoodBoost" ], | ||
|
||
"envEffects": [{ | ||
"biomes": [ | ||
"hot" | ||
], | ||
"stats": [{ | ||
"stat": "protection", | ||
"effectiveMultiplier": 0.85 | ||
}, | ||
{ | ||
"stat": "foodDelta", | ||
"baseMultiplier": 1.35 | ||
} | ||
"envEffects" : [ | ||
{ | ||
"biomes" : [ "hot" ], | ||
"stats" : [ | ||
{ "stat" : "protection", "effectiveMultiplier" : 0.85 }, | ||
{ "stat" : "foodDelta", "baseMultiplier" : 1.35 } | ||
] | ||
}, | ||
{ | ||
"biomes": [ | ||
"toxic", | ||
"alien", | ||
"protoworld", | ||
"irradiated", | ||
"chromatic", | ||
"protoworlddark", | ||
"jungle", | ||
"fungus", | ||
"fungal" | ||
], | ||
"stats": [{ | ||
"stat": "powerMultiplier", | ||
"baseMultiplier": 1.15 | ||
}, | ||
{ | ||
"stat": "energyRegenPercentageRate", | ||
"baseMultiplier": 1.15 | ||
}, | ||
{ | ||
"stat": "foodDelta", | ||
"baseMultiplier": 1.05 | ||
} | ||
"biomes" : [ "toxic", "alien", "protoworld", "irradiated", "chromatic", "protoworlddark", "jungle", "fungus", "fungal" ], | ||
"stats" : [ | ||
{ "stat" : "powerMultiplier", "baseMultiplier" : 1.15 }, | ||
{ "stat" : "energyRegenPercentageRate", "baseMultiplier" : 1.15 }, | ||
{ "stat" : "foodDelta", "baseMultiplier" : 1.05 } | ||
] | ||
} | ||
], | ||
"weaponEffects" : [ | ||
{ | ||
"weapons" : [ "radien" ], | ||
"stats" : [ | ||
{ "stat" : "critChance", "amount" : 1.5 }, | ||
{ "stat" : "protection", "effectiveMultiplier" : 1.15 } | ||
] | ||
} | ||
], | ||
"weaponEffects": [{ | ||
"weapons": [ "radien" ], | ||
"stats": [ | ||
{"stat": "critChance","amount": 1.5}, | ||
{"stat": "protection","effectiveMultiplier": 1.15} | ||
] | ||
}] | ||
"tech" : [ "xi_bulb" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,5 +66,6 @@ | |
"effectiveMultiplier": 1.2 | ||
}] | ||
} | ||
] | ||
], | ||
"tech" : [ "flight_saturnian" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,5 +83,6 @@ | |
} | ||
] | ||
} | ||
] | ||
], | ||
"tech" : [ "huntersclaw" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,5 +84,6 @@ | |
"special": [ | ||
"shadowglow1", | ||
"darkhunternightar" | ||
] | ||
], | ||
"tech" : [ "tenebrhaeburst" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,5 +117,6 @@ | |
"energyAmt": 0.25 | ||
} | ||
} | ||
] | ||
], | ||
"tech" : [ "bugarmor" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,5 +49,6 @@ | |
] | ||
} | ||
], | ||
"special" : [ "headlampveluu" ] | ||
"special" : [ "headlampveluu" ], | ||
"tech" : [ "veluuclaw" ] | ||
} |