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)

View File

@@ -1,8 +0,0 @@
ContextMenu_EN = {
ContextMenu_Cut_Arm = "Cut arm",
ContextMenu_Operate_Arm = "Operate arm",
ContextMenu_TourniquetRightSwitch = "Tourniquet on Right Arm",
ContextMenu_TourniquetLeftSwitch = "Tourniquet on Left Arm",
}

View File

@@ -1,10 +0,0 @@
IGUI_EN = {
IGUI_ItemCat_Prosthesis = "Prosthesis",
IGUI_ItemCat_Amputation = "Amputation"
IGUI_ItemCat_Surgeon_kit = "Surgeon kit",
IGUI_perks_Right_Hand = "Right hand",
IGUI_perks_Left_Hand = "Left hand",
IGUI_perks_Prosthesis = "Prosthesis skills",
IGUI_TOC_RollUpSleeveForAmputatedLimbs = "Roll up sleeves for amputated limbs"
}

View File

@@ -1,38 +0,0 @@
DisplayName_EN = {
ItemName_TOC.Amputation_Right_Hand = "Amputated Right Hand",
ItemName_TOC.Amputation_Right_LowerArm = "Amputated Right Forearm",
ItemName_TOC.Amputation_Right_UpperArm = "Amputated Entire Right Arm",
ItemName_TOC.Amputation_Left_Hand = "Amputated Left Hand",
ItemName_TOC.Amputation_Left_LowerArm = "Amputated Left Forearm",
ItemName_TOC.Amputation_Left_UpperArm = "Amputated Entire Left Arm",
ItemName_TOC.Improvised_surgeon_kit = "Improvised surgeon kit",
ItemName_TOC.Surgeon_kit = "Surgeon kit",
ItemName_TOC.Real_surgeon_kit = "Real surgeon kit",
ItemName_TOC.Prost_Right_Hand_WoodenHook = "Right Hand - Wooden Hook",
ItemName_TOC.Prost_Left_Hand_WoodenHook = "Left Hand - Wooden Hook",
ItemName_TOC.Prost_Right_LowerArm_WoodenHook = "Right Forearm - Wooden Hook",
ItemName_TOC.Prost_Left_LowerArm_WoodenHook = "Left Forearm - Wooden Hook",
ItemName_TOC.Prost_Right_Hand_MetalHook = "Right Hand - Metal Hook",
ItemName_TOC.Prost_Left_Hand_MetalHook = "Left Hand - Metal Hook",
ItemName_TOC.Prost_Right_LowerArm_MetalHook = "Right Forearm - Metal Hook",
ItemName_TOC.Prost_Left_LowerArm_MetalHook = "Left Forearm - Metal Hook",
ItemName_TOC.Prost_Right_Hand_MetalHand = "Right Hand - Metal Hand",
ItemName_TOC.Prost_Left_Hand_MetalHand = "Left Hand - Metal Hand",
ItemName_TOC.Prost_Right_LowerArm_MetalHand = "Right Forearm - Metal Hand",
ItemName_TOC.Prost_Left_LowerArm_MetalHand = "Left Forearm - Metal Hand",
ItemName_TOC.WoodenHook = "Wooden Hook",
ItemName_TOC.MetalHook = "Metal Hook",
ItemName_TOC.MetalHand = "Metal Hand",
ItemName_TOC.ProstheticKnife = "Prosthetic Knife",
ItemName_TOC.SurgeonMag1 = "Surgeon magazine for dummies",
ItemName_TOC.SurgeonMag2 = "Surgeon magazine for students",
ItemName_TOC.SurgeonMag3 = "Surgeon magazine for experts",
ItemName_TOC.ProthesisMag1 = "Prothesis magazine for dummies",
ItemName_TOC.ProthesisMag2 = "Prothesis magazine for experienced",
ItemName_TOC.ProthesisMag3 = "Prothesis magazine for experts",
}

View File

@@ -1,14 +0,0 @@
Sandbox_EN = {
Sandbox_TOC = "The Only Cure",
Sandbox_TOC_EnablePhantomPain = "Enable Phantom Pain",
Sandbox_TOC_EnablePhantomPain_tooltip = "Every once in a while, your character will get a pain sensation where the old limb, now amputated, is supposed to be.",
Sandbox_TOC_CicatrizationSpeedMultiplier = "Cicatrization speed multiplier",
Sandbox_TOC_CicatrizationSpeedMultiplier_tooltip = "Customize this to make the cicatrization process faster.",
Sandbox_TOC_AmputationTimeMultiplier = "Amputation Time Scaler",
Sandbox_TOC_AmputationTimeMultiplier_tooltip = "Scales the amount of time multplying added after amputation.",
}

View File

@@ -1,35 +0,0 @@
Tooltip_EN = {
Tooltip_Real_surgeon_kit = "Real surgeon kit. To be used on an amputated limb<br>Helps healing the severed limb, reducing a lot of the time necessary to cicatrize.",
Tooltip_Surgeon_kit = "Surgeon kit. To be used on an amputated limb<br>Helps healing the severed limb, reducing some of the time necessary to cicatrize.",
Tooltip_Improvised_surgeon_kit = "Improvised surgeon kit. To be used on an amputated limb<br>Helps healing the severed limb, reducing a little the time necessary to cicatrize.",
Tooltip_equip_prothesis_hand = "A prosthesis equipped to the forearm",
Tooltip_equip_prothesis_fore = "A prosthesis equipped to the hand",
Tooltip_prosthesic_limb = "A prosthetic limb. You'll have to wait until your limb is cicatrized before installing it.<br> It's done by having a bandage (alcohol is better) when cut, use a surgeon kit and wait.",
Tooltip_ProstheticKnife = "Prost Knife test",
Recipe_Tooltip_AssembleProsthesis = "Make a prosthetic limb",
Recipe_Tooltip_DisassembleProsthesis = "Disassemble a prosthetic limb",
Recipe_Tooltip_Wooden_hook = "Make a prosthesic wooden hook.<br>Can be used on an amputated hand or forearm.<br>Can't be equipped if the upper arm is amputated.",
Recipe_Tooltip_Metal_hook = "Make a prosthesic metal hook.<br>Can be used on an amputated hand or forearm.<br>Can't be equipped if the upper arm is amputated.",
Recipe_Tooltip_Metal_hand = "Make a prosthesic metal hand.<br>Can be used on an amputated hand or forearm.<br>Can't be equipped if the upper arm is amputated.",
Recipe_Tooltip_Real_surgeon_kit = "Make a real surgeon kit.<br>Helps healing the severed limb, reducing a lot of the time necessary to cicatrize.",
Recipe_Tooltip_Surgeon_kit = "Make a surgeon kit.<br>Helps healing the severed limb, reducing some of the time necessary to cicatrize.",
Recipe_Tooltip_Improvised_surgeon_kit = "Make an improvised surgeon kit.<br>Helps healing the severed limb, reducing a little the time necessary to cicatrize."
Tooltip_SurgeonMag1 = "Learn how to make an improvised surgeon kit!",
Tooltip_SurgeonMag2 = "Learn how to make a surgeon kit!",
Tooltip_SurgeonMag3 = "Learn how to make a real surgeon kit!",
Tooltip_ProthesisMag1 = "Learn how to make a wooden hook!",
Tooltip_ProthesisMag2 = "Learn how to make a metal hook!",
Tooltip_ProthesisMag3 = "Learn how to make a metal hand!",
}

View File

@@ -1,42 +0,0 @@
UI_EN = {
UI_ContextMenu_InstallProthesis = "Install prothesis",
UI_ContextMenu_UninstallProthesis = "Uninstall prothesis",
UI_ContextMenu_Operate = "Operate",
UI_ContextMenu_OperateOven = "Operate with oven",
UI_ContextMenu_CutArm = "Cut arm",
UI_prof_surgeon = "Surgeon",
UI_profdesc_surgeon = "You are a surgeon! Start with all recipe of the mod the only cure.<br>Easier to amputate and operate amputees.",
UI_trait_Amputee_Hand = "Left Hand Amputated",
UI_trait_Amputee_Hand_desc = "You lost your left hand way before the apocalypse began.",
UI_trait_Amputee_LowerArm = "Left Forearm Amputated",
UI_trait_Amputee_LowerArm_desc = "You lost your left forearm way before the apocalypse began.",
UI_trait_Amputee_UpperArm = "Entire left Arm Amputated",
UI_trait_Amputee_UpperArm_desc = "You lost your entire left arm before the apocalypse, good luck.",
UI_trait_Insensitive = "Insensitive to pain",
UI_trait_Insensitivedesc = "Reduces maximum pain.",
UI_ContextMenu_Right_Hand = "Right hand",
UI_ContextMenu_Right_LowerArm = "Right forearm",
UI_ContextMenu_Right_UpperArm = "Right arm",
UI_ContextMenu_Left_Hand = "Left hand",
UI_ContextMenu_Left_LowerArm = "Left forearm",
UI_ContextMenu_Left_UpperArm = "Left arm",
UI_ContextMenu_Left_Foot = "Left foot",
UI_ContextMenu_Right_Foot = "Right foot"
UI_ContextMenu_My = "My ",
UI_ContextMenu_Now_cut = " is now healed!",
}