From 711f20d4eb5b16387a6d7c5033f2a463ae56e4df Mon Sep 17 00:00:00 2001 From: Pao Date: Thu, 2 Mar 2023 20:07:48 +0100 Subject: [PATCH] updating scripts.txt --- .vscode/settings.json | 4 +- dev_stuff/python_helpers/main.py | 155 ++--- .../TimedActions/JCIO_CutLimbAction.lua | 1 - media/lua/shared/translate/EN/Tooltip_EN.txt | 3 +- media/scripts/JCIO_items.txt | 571 ++++++++++++++++-- media/scripts/JCIO_recipes.txt | 153 +++-- 6 files changed, 736 insertions(+), 151 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 1000496..4240691 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -57,6 +57,8 @@ "ISWearClothing", "SyncXp", "ISClothingExtraAction", - "SwapItConfig" + "SwapItConfig", + "getTimestamp", + "addSound" ] } \ No newline at end of file diff --git a/dev_stuff/python_helpers/main.py b/dev_stuff/python_helpers/main.py index eb6837b..d971409 100644 --- a/dev_stuff/python_helpers/main.py +++ b/dev_stuff/python_helpers/main.py @@ -2,6 +2,13 @@ import lxml.etree as gfg import pandas as pd import uuid import openpyxl +import os + + +os.chdir(os.getcwd() + "\\dev_stuff\\python_helpers\\") + + + def generate_clothing_item(name, model, texture_choices): @@ -124,6 +131,17 @@ def generate_item(item_name, weight, item_type, display_category, display_name, file.write(root_element) file.close() +def generate_normal_items(df, part_type): + for row in df.iterrows(): + item_id = "ProstPart_" + row[1][part_type] + item_type = "Normal" + weight = "{0:.2f}".format(float(row[1]["Weight"])) + display_category = "Prosthesis" + display_name = row[1]["Display Name"] + icon = "ProstTest" + part_type + generate_item(item_id, weight, item_type, display_category, display_name, icon, "TempTooltip", "false") + + ########################################################################################### def read_table(file_name: str, table_name: str) -> pd.DataFrame: @@ -154,97 +172,98 @@ prost_bodylocations = ["JCIO_ArmRightProsthesis", "JCIO_ArmLeftProsthesis"] texture_types = ["Wooden", "Metal"] -# CLOTHING GENERATION PASS -for base_row in df_base.iterrows(): - for top_row in df_top.iterrows(): - base_name = base_row[1][0] - top_name = top_row[1][0] - for limb in limbs: - for side in sides: - current_name = "Prost_" + side + "_" + limb + "_" + base_name + "_" + top_name - texture_choices = {r"Amputations\\Upperarm\\skin01_b"} - generate_clothing_item(current_name, "test", texture_choices) +######################### + +# CLOTHING GENERATION PASS +def run_clothing_generation(): + for base_row in df_base.iterrows(): + for top_row in df_top.iterrows(): + base_name = base_row[1][0] + top_name = top_row[1][0] + + for limb in limbs: + for side in sides: + current_name = "Prost_" + side + "_" + limb + "_" + base_name + "_" + top_name + texture_choices = {r"Amputations\\Upperarm\\skin01_b"} + generate_clothing_item(current_name, "test", texture_choices) # ITEM GENERATION PASS - ASSEMBLED -for base_row in df_base.iterrows(): - for top_row in df_top.iterrows(): - base_id = base_row[1]["Base"] - top_id = top_row[1]["Top"] +def run_assembled_item_generation(): + for base_row in df_base.iterrows(): + for top_row in df_top.iterrows(): + base_id = base_row[1]["Base"] + top_id = top_row[1]["Top"] - item_id = "Prost_" + base_id + "_" + top_id - item_type = "Clothing" - weight = "{0:.2f}".format(float(base_row[1]["Weight"]) + float(top_row[1]["Weight"])) - display_category = "Prosthesis" - display_name = "Prosthesis - " + base_row[1]["Display Name"] + " and " + top_row[1]["Display Name"] + item_id = "Prost_" + base_id + "_" + top_id + item_type = "Clothing" + weight = "{0:.2f}".format(float(base_row[1]["Weight"]) + float(top_row[1]["Weight"])) + display_category = "Prosthesis" + display_name = "Prosthesis - " + base_row[1]["Display Name"] + " and " + top_row[1]["Display Name"] - for limb in limbs: - for side in sides: - clothing_item_name = "Prost_" + side + "_" + limb + "_" + base_id + "_" + top_id - bl = prost_bodylocations[0] if side == "Right" else prost_bodylocations[1] - - icon = "metalLeg" - generate_item(item_id, weight, item_type, display_category, display_name, icon, "TempTooltip", "false", clothing_item_name, bl, "Hands") + for limb in limbs: + for side in sides: + clothing_item_name = "Prost_" + side + "_" + limb + "_" + base_id + "_" + top_id + bl = prost_bodylocations[0] if side == "Right" else prost_bodylocations[1] + icon = "metalLeg" + generate_item(item_id, weight, item_type, display_category, display_name, icon, "TempTooltip", "false", clothing_item_name, bl, "Hands") # ITEM GENERATION PASS - Single item to assemble stuff -def generate_normal_items(df, part_type): - for row in df.iterrows(): - item_id = "ProstPart_" + row[1][part_type] - item_type = "Normal" - weight = "{0:.2f}".format(float(row[1]["Weight"])) - display_category = "Prosthesis" - display_name = row[1]["Display Name"] - icon = "ProstTest" + part_type - generate_item(item_id, weight, item_type, display_category, display_name, icon, "TempTooltip", "false") - - -generate_normal_items(df_base, "Base") -generate_normal_items(df_top, "Top") +def run_single_part_item_generation(): + generate_normal_items(df_base, "Base") + generate_normal_items(df_top, "Top") # RECIPE GENERATION PASS - Assembly -for base_row in df_base.iterrows(): - for top_row in df_top.iterrows(): +def run_recipe_assemble_generation(): + for base_row in df_base.iterrows(): + for top_row in df_top.iterrows(): - base_name = base_row[1]["Base"] - top_name = top_row[1]["Top"] - base_display_name = base_row[1]["Display Name"] - top_display_name = top_row[1]["Display Name"] + base_name = base_row[1]["Base"] + top_name = top_row[1]["Top"] + base_display_name = base_row[1]["Display Name"] + top_display_name = top_row[1]["Display Name"] - recipe_name = f"Craft prosthesis with {base_display_name} and {top_display_name}" + recipe_name = f"Craft prosthesis with {base_display_name} and {top_display_name}" - first_item = "ProstPart_" + base_row[1]["Base"] - second_item = "ProstPart_" + top_row[1]["Top"] - # TODO add screwdriver and some screws to the items + first_item = "ProstPart_" + base_row[1]["Base"] + second_item = "ProstPart_" + top_row[1]["Top"] + # TODO add screwdriver and some screws to the items - recipe_items = [first_item, second_item] - on_create_func = "ProsthesisRecipes.OnCreateProsthesis" - time = 10 # TODO Change this - skill_required = ["FirstAid", "2"] # TODO Change this - tooltip = "Tooltip_test" - generate_recipe(recipe_name, recipe_items, on_create_func, time, skill_required, tooltip) + recipe_items = [first_item, second_item] + on_create_func = "ProsthesisRecipes.OnCreateProsthesis" + time = 10 # TODO Change this + skill_required = ["FirstAid", "2"] # TODO Change this + tooltip = "Recipe_Tooltip_AssembleProsthesis" + generate_recipe(recipe_name, recipe_items, on_create_func, time, skill_required, tooltip) # RECIPE GENERATION PASS - Disassembly -for base_row in df_base.iterrows(): - for top_row in df_top.iterrows(): +def run_recipe_disassemble_generation(): + for base_row in df_base.iterrows(): + for top_row in df_top.iterrows(): - base_name = base_row[1]["Base"] - top_name = top_row[1]["Top"] + base_name = base_row[1]["Base"] + top_name = top_row[1]["Top"] - base_display_name = base_row[1]["Display Name"] - top_display_name = top_row[1]["Display Name"] + base_display_name = base_row[1]["Display Name"] + top_display_name = top_row[1]["Display Name"] - recipe_name = f"Disassemble prosthesis with {base_display_name} and {top_display_name}" - recipe_item = [f"Prost_{base_name}_{top_name}"] - on_create_func = "ProsthesisRecipes.OnDisassembleProsthesis" - time = 10 # TODO Change this - skill_required = ["FirstAid", "2"] # TODO Change this - tooltip = "Tooltip_test" - generate_recipe(recipe_name, recipe_item, on_create_func, time, skill_required, tooltip) + recipe_name = f"Disassemble prosthesis with {base_display_name} and {top_display_name}" + recipe_item = [f"Prost_{base_name}_{top_name}"] + on_create_func = "ProsthesisRecipes.OnDisassembleProsthesis" + time = 10 # TODO Change this + skill_required = ["FirstAid", "2"] # TODO Change this + tooltip = "Recipe_Tooltip_DisassembleProsthesis" + generate_recipe(recipe_name, recipe_item, on_create_func, time, skill_required, tooltip) # RECIPE GENERATION PASS - Single parts - Base # TODO do this + + + + +run_single_part_item_generation() \ No newline at end of file diff --git a/media/lua/client/TimedActions/JCIO_CutLimbAction.lua b/media/lua/client/TimedActions/JCIO_CutLimbAction.lua index 8a55a25..eda62b9 100644 --- a/media/lua/client/TimedActions/JCIO_CutLimbAction.lua +++ b/media/lua/client/TimedActions/JCIO_CutLimbAction.lua @@ -43,7 +43,6 @@ function JCIO_CutLimbAction:stop() --print("Stopping ISCutLimb") -- Handles sound - if self.sawSound and self.sawSound ~= 0 and self.surgeon:getEmitter():isPlaying(self.sawSound) then self.surgeon:getEmitter():stopSound(self.sawSound) end diff --git a/media/lua/shared/translate/EN/Tooltip_EN.txt b/media/lua/shared/translate/EN/Tooltip_EN.txt index 2d9f087..b03bffd 100644 --- a/media/lua/shared/translate/EN/Tooltip_EN.txt +++ b/media/lua/shared/translate/EN/Tooltip_EN.txt @@ -10,7 +10,8 @@ Tooltip_EN = { 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.
Can be used on an amputated hand or forearm.
Can't be equipped if the upper arm is amputated.", diff --git a/media/scripts/JCIO_items.txt b/media/scripts/JCIO_items.txt index f82e862..711174f 100644 --- a/media/scripts/JCIO_items.txt +++ b/media/scripts/JCIO_items.txt @@ -330,47 +330,542 @@ imports /************************ Prosthesis base items ************************/ -item WoodenHook - { - Weight = 1, - Type = Normal, - DisplayCategory = Prosthesis, - DisplayName = DisplayName_WoodenHook, - Icon = woodenHook, - Tooltip = Tooltip_prosthesic_limb, - WorldStaticModel = TOC.WoodenHook, - } +item ProstPart_WoodenBase + { + Weight = 0.70, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = Wooden Base, + Icon = ProstTestBase, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item ProstPart_MetalBase + { + Weight = 1.20, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = Metal Base, + Icon = ProstTestBase, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item ProstPart_LeatherBase + { + Weight = 1.00, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = Leather Base, + Icon = ProstTestBase, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item ProstPart_WoodenHook + { + Weight = 0.20, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = Wooden Hook, + Icon = ProstTestTop, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item ProstPart_MetalHook + { + Weight = 0.50, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = Metal Hook, + Icon = ProstTestTop, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item ProstPart_MetalHand + { + Weight = 0.70, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = Metal Hand, + Icon = ProstTestTop, + Tooltip = TempTooltip, + CanHaveHoles = false, + } + + +/************************ Prosthesis full items ************************/ +item Prost_WoodenBase_WoodenHook + { + Weight = 0.90, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Wooden Base and Wooden Hook, + ClothingItem = Prost_Left_Hand_WoodenBase_WoodenHook, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_WoodenBase_WoodenHook + { + Weight = 0.90, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Wooden Base and Wooden Hook, + ClothingItem = Prost_Right_Hand_WoodenBase_WoodenHook, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_WoodenBase_WoodenHook + { + Weight = 0.90, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Wooden Base and Wooden Hook, + ClothingItem = Prost_Left_LowerArm_WoodenBase_WoodenHook, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_WoodenBase_WoodenHook + { + Weight = 0.90, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Wooden Base and Wooden Hook, + ClothingItem = Prost_Right_LowerArm_WoodenBase_WoodenHook, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_WoodenBase_MetalHook + { + Weight = 1.20, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Wooden Base and Metal Hook, + ClothingItem = Prost_Left_Hand_WoodenBase_MetalHook, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_WoodenBase_MetalHook + { + Weight = 1.20, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Wooden Base and Metal Hook, + ClothingItem = Prost_Right_Hand_WoodenBase_MetalHook, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_WoodenBase_MetalHook + { + Weight = 1.20, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Wooden Base and Metal Hook, + ClothingItem = Prost_Left_LowerArm_WoodenBase_MetalHook, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_WoodenBase_MetalHook + { + Weight = 1.20, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Wooden Base and Metal Hook, + ClothingItem = Prost_Right_LowerArm_WoodenBase_MetalHook, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_WoodenBase_MetalHand + { + Weight = 1.40, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Wooden Base and Metal Hand, + ClothingItem = Prost_Left_Hand_WoodenBase_MetalHand, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_WoodenBase_MetalHand + { + Weight = 1.40, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Wooden Base and Metal Hand, + ClothingItem = Prost_Right_Hand_WoodenBase_MetalHand, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_WoodenBase_MetalHand + { + Weight = 1.40, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Wooden Base and Metal Hand, + ClothingItem = Prost_Left_LowerArm_WoodenBase_MetalHand, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_WoodenBase_MetalHand + { + Weight = 1.40, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Wooden Base and Metal Hand, + ClothingItem = Prost_Right_LowerArm_WoodenBase_MetalHand, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_MetalBase_WoodenHook + { + Weight = 1.40, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Metal Base and Wooden Hook, + ClothingItem = Prost_Left_Hand_MetalBase_WoodenHook, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_MetalBase_WoodenHook + { + Weight = 1.40, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Metal Base and Wooden Hook, + ClothingItem = Prost_Right_Hand_MetalBase_WoodenHook, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_MetalBase_WoodenHook + { + Weight = 1.40, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Metal Base and Wooden Hook, + ClothingItem = Prost_Left_LowerArm_MetalBase_WoodenHook, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_MetalBase_WoodenHook + { + Weight = 1.40, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Metal Base and Wooden Hook, + ClothingItem = Prost_Right_LowerArm_MetalBase_WoodenHook, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_MetalBase_MetalHook + { + Weight = 1.70, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Metal Base and Metal Hook, + ClothingItem = Prost_Left_Hand_MetalBase_MetalHook, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_MetalBase_MetalHook + { + Weight = 1.70, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Metal Base and Metal Hook, + ClothingItem = Prost_Right_Hand_MetalBase_MetalHook, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_MetalBase_MetalHook + { + Weight = 1.70, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Metal Base and Metal Hook, + ClothingItem = Prost_Left_LowerArm_MetalBase_MetalHook, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_MetalBase_MetalHook + { + Weight = 1.70, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Metal Base and Metal Hook, + ClothingItem = Prost_Right_LowerArm_MetalBase_MetalHook, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_MetalBase_MetalHand + { + Weight = 1.90, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Metal Base and Metal Hand, + ClothingItem = Prost_Left_Hand_MetalBase_MetalHand, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_MetalBase_MetalHand + { + Weight = 1.90, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Metal Base and Metal Hand, + ClothingItem = Prost_Right_Hand_MetalBase_MetalHand, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_MetalBase_MetalHand + { + Weight = 1.90, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Metal Base and Metal Hand, + ClothingItem = Prost_Left_LowerArm_MetalBase_MetalHand, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_MetalBase_MetalHand + { + Weight = 1.90, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Metal Base and Metal Hand, + ClothingItem = Prost_Right_LowerArm_MetalBase_MetalHand, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_LeatherBase_WoodenHook + { + Weight = 1.20, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Leather Base and Wooden Hook, + ClothingItem = Prost_Left_Hand_LeatherBase_WoodenHook, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_LeatherBase_WoodenHook + { + Weight = 1.20, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Leather Base and Wooden Hook, + ClothingItem = Prost_Right_Hand_LeatherBase_WoodenHook, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_LeatherBase_WoodenHook + { + Weight = 1.20, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Leather Base and Wooden Hook, + ClothingItem = Prost_Left_LowerArm_LeatherBase_WoodenHook, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_LeatherBase_WoodenHook + { + Weight = 1.20, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Leather Base and Wooden Hook, + ClothingItem = Prost_Right_LowerArm_LeatherBase_WoodenHook, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_LeatherBase_MetalHook + { + Weight = 1.50, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Leather Base and Metal Hook, + ClothingItem = Prost_Left_Hand_LeatherBase_MetalHook, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_LeatherBase_MetalHook + { + Weight = 1.50, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Leather Base and Metal Hook, + ClothingItem = Prost_Right_Hand_LeatherBase_MetalHook, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_LeatherBase_MetalHook + { + Weight = 1.50, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Leather Base and Metal Hook, + ClothingItem = Prost_Left_LowerArm_LeatherBase_MetalHook, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_LeatherBase_MetalHook + { + Weight = 1.50, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Leather Base and Metal Hook, + ClothingItem = Prost_Right_LowerArm_LeatherBase_MetalHook, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_LeatherBase_MetalHand + { + Weight = 1.70, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Leather Base and Metal Hand, + ClothingItem = Prost_Left_Hand_LeatherBase_MetalHand, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_LeatherBase_MetalHand + { + Weight = 1.70, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Leather Base and Metal Hand, + ClothingItem = Prost_Right_Hand_LeatherBase_MetalHand, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_LeatherBase_MetalHand + { + Weight = 1.70, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Leather Base and Metal Hand, + ClothingItem = Prost_Left_LowerArm_LeatherBase_MetalHand, + BodyLocation = JCIO_ArmLeftProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } +item Prost_LeatherBase_MetalHand + { + Weight = 1.70, + Type = Clothing, + DisplayCategory = Prosthesis, + DisplayName = Prosthesis - Leather Base and Metal Hand, + ClothingItem = Prost_Right_LowerArm_LeatherBase_MetalHand, + BodyLocation = JCIO_ArmRightProsthesis, + BloodLocation = Hands, + Icon = metalLeg, + Tooltip = TempTooltip, + CanHaveHoles = false, + } + + -item MetalHook - { - Weight = 0.5, - Type = Normal, - DisplayCategory = Prosthesis, - DisplayName = DisplayName_MetalHook, - Icon = metalHook, - Tooltip = Tooltip_prosthesic_limb, - WorldStaticModel = TOC.MetalHook, - } -item MetalHand - { - Weight = 0.3, - Type = Normal, - DisplayCategory = Prosthesis, - DisplayName = DisplayName_MetalHand, - Icon = metalHand, - Tooltip = Tooltip_prosthesic_limb, - } -item ProstheticKnife -{ - Weight = 0.5, - Type = Normal, - DisplayCategory = Prosthesis, - DisplayName = DisplayName_ProstheticKnife, - Icon = metalHand, - Tooltip = Tooltip_ProstheticKnife, -} diff --git a/media/scripts/JCIO_recipes.txt b/media/scripts/JCIO_recipes.txt index 90d2f7f..ec2b931 100644 --- a/media/scripts/JCIO_recipes.txt +++ b/media/scripts/JCIO_recipes.txt @@ -6,7 +6,7 @@ module JCIO TOC } -/*************RECIPES*******************/ +/*************Surgeon Kits*******************/ recipe Combine improvised surgeon kit { @@ -66,61 +66,130 @@ recipe Combine real surgeon kit NeedToBeLearn: true, } -recipe Make wooden hook - { - Nails=10, - Plank=3, - keep [Recipe.GetItemTypes.Saw], - keep [Recipe.GetItemTypes.Hammer], - Result: WoodenHook, - Time: 100.0, - NeedToBeLearn: false, + +/*************Craft Prosthetics*******************/ +recipe Craft prosthesis with Wooden Base and Wooden Hook + { + ProstPart_WoodenBase, + ProstPart_WoodenHook, + + + Time: 10.00, + NeedToBeLearn: true, CanBeDoneFromFloor: false, OnGiveXP: NoXP_OnGiveXP, - SkillRequired: Carpentry=4, + SkillRequired: FirstAid=2, Category: Surgeon, - Tooltip: Recipe_Tooltip_Wooden_hook, - NeedToBeLearn: true, - + OnCreate:ProsthesisRecipes.OnCreateProsthesis, + Tooltip: Recipe_Tooltip_AssembleProsthesis, } - -recipe Make metal hook +recipe Craft prosthesis with Wooden Base and Metal Hook { - SheetMetal, - BlowTorch=7, - keep WeldingMask, + ProstPart_WoodenBase, + ProstPart_MetalHook, - Result: MetalHook, - Time: 250.0, - NeedToBeLearn: false, + + Time: 10.00, + NeedToBeLearn: true, CanBeDoneFromFloor: false, OnGiveXP: NoXP_OnGiveXP, - SkillRequired: MetalWelding=4, + SkillRequired: FirstAid=2, Category: Surgeon, - Tooltip: Recipe_Tooltip_Metal_hook, - NeedToBeLearn: true, + OnCreate:ProsthesisRecipes.OnCreateProsthesis, + Tooltip: Recipe_Tooltip_AssembleProsthesis, } - -recipe Make metal hand +recipe Craft prosthesis with Wooden Base and Metal Hand { - Nails=10, - Plank, - keep [Recipe.GetItemTypes.Saw], - keep [Recipe.GetItemTypes.Hammer], - SheetMetal, - BlowTorch=7, - keep WeldingMask, + ProstPart_WoodenBase, + ProstPart_MetalHand, - Result: MetalHand, - Time: 250.0, - NeedToBeLearn: false, + + Time: 10.00, + NeedToBeLearn: true, CanBeDoneFromFloor: false, OnGiveXP: NoXP_OnGiveXP, - SkillRequired: Carpentry=8, - SkillRequired: MetalWelding=8, + SkillRequired: FirstAid=2, Category: Surgeon, - Tooltip: Recipe_Tooltip_Metal_hand, - NeedToBeLearn: true, + OnCreate:ProsthesisRecipes.OnCreateProsthesis, + Tooltip: Recipe_Tooltip_AssembleProsthesis, } -} \ No newline at end of file +recipe Craft prosthesis with Metal Base and Wooden Hook + { + ProstPart_MetalBase, + ProstPart_WoodenHook, + + + Time: 10.00, + NeedToBeLearn: true, + CanBeDoneFromFloor: false, + OnGiveXP: NoXP_OnGiveXP, + SkillRequired: FirstAid=2, + Category: Surgeon, + OnCreate:ProsthesisRecipes.OnCreateProsthesis, + Tooltip: Recipe_Tooltip_AssembleProsthesis, + } +recipe Craft prosthesis with Metal Base and Metal Hook + { + ProstPart_MetalBase, + ProstPart_MetalHook, + + + Time: 10.00, + NeedToBeLearn: true, + CanBeDoneFromFloor: false, + OnGiveXP: NoXP_OnGiveXP, + SkillRequired: FirstAid=2, + Category: Surgeon, + OnCreate:ProsthesisRecipes.OnCreateProsthesis, + Tooltip: Recipe_Tooltip_AssembleProsthesis, + } +recipe Craft prosthesis with Metal Base and Metal Hand + { + ProstPart_MetalBase, + ProstPart_MetalHand, + + + Time: 10.00, + NeedToBeLearn: true, + CanBeDoneFromFloor: false, + OnGiveXP: NoXP_OnGiveXP, + SkillRequired: FirstAid=2, + Category: Surgeon, + OnCreate:ProsthesisRecipes.OnCreateProsthesis, + Tooltip: Recipe_Tooltip_AssembleProsthesis, + } +recipe Craft prosthesis with Leather Base and Wooden Hook + { + ProstPart_LeatherBase, + ProstPart_WoodenHook, + + + Time: 10.00, + NeedToBeLearn: true, + CanBeDoneFromFloor: false, + OnGiveXP: NoXP_OnGiveXP, + SkillRequired: FirstAid=2, + Category: Surgeon, + OnCreate:ProsthesisRecipes.OnCreateProsthesis, + Tooltip: Recipe_Tooltip_AssembleProsthesis, + } +recipe Craft prosthesis with Leather Base and Metal Hook + { + ProstPart_LeatherBase, + ProstPart_MetalHook, + + + Time: 10.00, + NeedToBeLearn: true, + CanBeDoneFromFloor: false, + OnGiveXP: NoXP_OnGiveXP, + SkillRequired: FirstAid=2, + Category: Surgeon, + OnCreate:ProsthesisRecipes.OnCreateProsthesis, + Tooltip: Recipe_Tooltip_AssembleProsthesis, + } +recipe Craft prosthesis with Leather Base and Metal Hand + +/*************Disassemble Prosthetics*******************/ +