reworking

This commit is contained in:
ZioPao
2023-11-06 04:16:43 +01:00
parent d79dfcc509
commit 875e0fdceb
207 changed files with 113 additions and 2 deletions

View File

@@ -1,26 +0,0 @@
local function AddBodyLocationBefore(new_location, move_to_location)
local group = BodyLocations.getGroup("Human")
local list = getClassFieldVal(group, getClassField(group, 1))
group:getOrCreateLocation(new_location)
local new_item = list:get(list:size()-1)
print("TOC: Created new body location" .. new_item:getId())
list:remove(new_item) -- We can't use the Index, it works if we pass the item though!
local i = group:indexOf(move_to_location)
list:add(i, new_item)
end
AddBodyLocationBefore("TOC_ArmRight", "Shoes")
AddBodyLocationBefore("TOC_ArmLeft", "Shoes")
AddBodyLocationBefore("TOC_ArmRightProsthesis", "Shoes")
AddBodyLocationBefore("TOC_ArmLeftProsthesis", "Shoes")
AddBodyLocationBefore("TOC_LegRight", "FannyPackFront")
AddBodyLocationBefore("TOC_LegLeft", "FannyPackFront")
AddBodyLocationBefore("TOC_LegRightProsthesis", "FannyPackFront")
AddBodyLocationBefore("TOC_LegLeftProsthesis", "FannyPackFront")

View File

@@ -1,28 +0,0 @@
local function AddProfession()
local surgeon = ProfessionFactory.addProfession(
'surgeon',
getText("UI_prof_surgeon"),
"profession_surgeon",
-6,
getText("UI_profdesc_surgeon")
);
surgeon:addXPBoost(Perks.Doctor, 4)
surgeon:addXPBoost(Perks.SmallBlade, 3)
-- TODO Fix this, it doesn't make any sense
surgeon:getFreeRecipes():add("Make metal hand")
surgeon:getFreeRecipes():add("Make metal hook")
surgeon:getFreeRecipes():add("Make wooden hook")
surgeon:getFreeRecipes():add("Combine real surgeon kit")
surgeon:getFreeRecipes():add("Combine surgeon kit")
surgeon:getFreeRecipes():add("Combine improvised surgeon kit")
local profList = ProfessionFactory.getProfessions()
for i=1,profList:size() do
local prof = profList:get(i-1)
BaseGameCharacterDetails.SetProfessionDescription(prof)
end
end
Events.OnGameBoot.Add(AddProfession)