From 0af7a7ec64b441fd913518efebcae37a42c3bf00 Mon Sep 17 00:00:00 2001 From: Ed <96445749+TheShuEd@users.noreply.github.com> Date: Fri, 10 Jan 2025 16:17:32 +0300 Subject: [PATCH] Alchemist content (#718) * reinforced vials * glass recipes * roundstart alchemist potions --- .../Locale/en-US/_CP14/reagents/labels.ftl | 2 + .../Locale/ru-RU/_CP14/reagents/labels.ftl | 2 + .../_CP14/Catalog/Fills/closets.yml | 14 +- .../Objects/Specific/Alchemy/vials.yml | 148 ++++++------------ .../Objects/Specific/Alchemy/vials_filled.yml | 139 ++++++++++++++++ .../_CP14/Recipes/Workbench/furnace.yml | 43 +++++ .../Specific/Alchemy/vial_small.rsi/meta.json | 6 + .../Alchemy/vial_small.rsi/reinforcement.png | Bin 0 -> 234 bytes .../vial_small.rsi/reinforcement_back.png | Bin 0 -> 174 bytes .../Specific/Alchemy/vial_tiny.rsi/meta.json | 6 + .../Alchemy/vial_tiny.rsi/reinforcement.png | Bin 0 -> 166 bytes .../vial_tiny.rsi/reinforcement_back.png | Bin 0 -> 156 bytes 12 files changed, 262 insertions(+), 98 deletions(-) create mode 100644 Resources/Locale/en-US/_CP14/reagents/labels.ftl create mode 100644 Resources/Locale/ru-RU/_CP14/reagents/labels.ftl create mode 100644 Resources/Prototypes/_CP14/Entities/Objects/Specific/Alchemy/vials_filled.yml create mode 100644 Resources/Textures/_CP14/Objects/Specific/Alchemy/vial_small.rsi/reinforcement.png create mode 100644 Resources/Textures/_CP14/Objects/Specific/Alchemy/vial_small.rsi/reinforcement_back.png create mode 100644 Resources/Textures/_CP14/Objects/Specific/Alchemy/vial_tiny.rsi/reinforcement.png create mode 100644 Resources/Textures/_CP14/Objects/Specific/Alchemy/vial_tiny.rsi/reinforcement_back.png diff --git a/Resources/Locale/en-US/_CP14/reagents/labels.ftl b/Resources/Locale/en-US/_CP14/reagents/labels.ftl new file mode 100644 index 0000000000..4992fdbff0 --- /dev/null +++ b/Resources/Locale/en-US/_CP14/reagents/labels.ftl @@ -0,0 +1,2 @@ +cp14-potion-label-health = Health potion +cp14-potion-label-mana = Mana potion \ No newline at end of file diff --git a/Resources/Locale/ru-RU/_CP14/reagents/labels.ftl b/Resources/Locale/ru-RU/_CP14/reagents/labels.ftl new file mode 100644 index 0000000000..1e99470df1 --- /dev/null +++ b/Resources/Locale/ru-RU/_CP14/reagents/labels.ftl @@ -0,0 +1,2 @@ +cp14-potion-label-health = Зелье лечения +cp14-potion-label-mana = Зелье маны \ No newline at end of file diff --git a/Resources/Prototypes/_CP14/Catalog/Fills/closets.yml b/Resources/Prototypes/_CP14/Catalog/Fills/closets.yml index 8be0d91c20..258908430e 100644 --- a/Resources/Prototypes/_CP14/Catalog/Fills/closets.yml +++ b/Resources/Prototypes/_CP14/Catalog/Fills/closets.yml @@ -15,15 +15,25 @@ amount: 1 - id: CP14Dropper amount: 1 + - id: CP14VialTinyReinforced + amount: 2 - id: CP14VialTiny - amount: 7 + amount: 4 + - id: CP14VialSmallReinforced + amount: 2 - id: CP14VialSmall - amount: 5 + amount: 3 - id: CP14Paper amount: 2 - id: CP14PenFeather amount: 1 #Random start resource + - id: CP14VialSmallHealthPotion + - id: CP14VialSmallHealthPotion + - id: CP14VialSmallHealthPotion + - id: CP14VialSmallManaPotion + - id: CP14VialSmallManaPotion + - id: CP14VialSmallManaPotion - id: CP14VialSmallGroundQuartz - id: CP14VialSmallGroundQuartz - id: CP14VialSmallBloodFlowerSap diff --git a/Resources/Prototypes/_CP14/Entities/Objects/Specific/Alchemy/vials.yml b/Resources/Prototypes/_CP14/Entities/Objects/Specific/Alchemy/vials.yml index 1581be7de5..de7f3fbdde 100644 --- a/Resources/Prototypes/_CP14/Entities/Objects/Specific/Alchemy/vials.yml +++ b/Resources/Prototypes/_CP14/Entities/Objects/Specific/Alchemy/vials.yml @@ -92,11 +92,13 @@ types: Blunt: 5 +# Vials + - type: entity id: CP14VialTiny - parent: CP14BaseVial + parent: CP14BaseVialFragile name: tiny vial - description: A sturdy glass vial to hold a tiny amount of liquid. + description: A fragile glass vial to hold a tiny amount of liquid. components: - type: Sprite sprite: _CP14/Objects/Specific/Alchemy/vial_tiny.rsi @@ -118,6 +120,34 @@ - type: Injector maxTransferAmount: 5 +- type: entity + id: CP14VialTinyReinforced + parent: CP14BaseVial + name: reinforced tiny vial + description: A reinforced glass vial to hold a tiny amount of liquid. + components: + - type: Sprite + sprite: _CP14/Objects/Specific/Alchemy/vial_tiny.rsi + layers: + - state: reinforcement_back + - state: vial + - state: liq-1 + map: ["enum.SolutionContainerLayers.Fill"] + visible: false + - state: reinforcement + - type: Item + size: Tiny + sprite: _CP14/Objects/Specific/Alchemy/vial_tiny.rsi + - type: SolutionContainerManager + solutions: + vial: + maxVol: 5 + - type: SolutionContainerVisuals + maxFillLevels: 5 + fillBaseName: liq- + - type: Injector + maxTransferAmount: 5 + - type: entity id: CP14VialSmall parent: CP14BaseVialFragile @@ -142,102 +172,28 @@ maxFillLevels: 5 fillBaseName: liq- -# Filled small - - type: entity - id: CP14VialSmallBloodFlowerSap - parent: CP14VialSmall - suffix: Bloodflower sap + id: CP14VialSmallReinforced + parent: CP14BaseVial + name: reinforced small vial + description: A reinforced glass vial to hold a small amount of liquid. components: + - type: Sprite + sprite: _CP14/Objects/Specific/Alchemy/vial_small.rsi + layers: + - state: reinforcement_back + - state: vial + - state: liq-1 + map: ["enum.SolutionContainerLayers.Fill"] + visible: false + - state: reinforcement + - type: Item + size: Tiny + sprite: _CP14/Objects/Specific/Alchemy/vial_small.rsi - type: SolutionContainerManager solutions: vial: - reagents: - - ReagentId: CP14BloodFlowerSap - Quantity: 10 - -- type: entity - id: CP14VialSmallAgaricMushroom - parent: CP14VialSmall - suffix: Fly agaric juice - components: - - type: SolutionContainerManager - solutions: - vial: - reagents: - - ReagentId: CP14AgaricMushroom - Quantity: 10 - -- type: entity - id: CP14VialSmallGroundQuartz - parent: CP14VialSmall - suffix: Ground Quartz - components: - - type: SolutionContainerManager - solutions: - vial: - reagents: - - ReagentId: CP14GroundQuartz - Quantity: 10 - -- type: entity - id: CP14VialSmallWildSage - parent: CP14VialSmall - suffix: Wild sage Sap - components: - - type: SolutionContainerManager - solutions: - vial: - reagents: - - ReagentId: CP14WildSageSap - Quantity: 10 - -- type: entity - id: CP14VialSmallBlueAmanita - parent: CP14VialSmall - suffix: Blue Amanita - components: - - type: SolutionContainerManager - solutions: - vial: - reagents: - - ReagentId: CP14BlueAmanita - Quantity: 10 - -- type: entity - id: CP14VialSmallDayflin - parent: CP14VialSmall - suffix: Dayflin - components: - - type: SolutionContainerManager - solutions: - vial: - reagents: - - ReagentId: CP14YellowDayflinPulp - Quantity: 10 - -# Filled tiny - -- type: entity - id: CP14VialTinyChromiumSlime - parent: CP14VialTiny - suffix: Chromium Slime - components: - - type: SolutionContainerManager - solutions: - vial: - reagents: - - ReagentId: CP14ChromiumSlime - Quantity: 5 - -- type: entity - id: CP14VialTinyLumiMushroom - parent: CP14VialTiny - suffix: LumiShroom - components: - - type: SolutionContainerManager - solutions: - vial: - reagents: - - ReagentId: CP14LumiMushroom - Quantity: 5 + maxVol: 10 + - type: SolutionContainerVisuals + maxFillLevels: 5 + fillBaseName: liq- diff --git a/Resources/Prototypes/_CP14/Entities/Objects/Specific/Alchemy/vials_filled.yml b/Resources/Prototypes/_CP14/Entities/Objects/Specific/Alchemy/vials_filled.yml new file mode 100644 index 0000000000..66cc8e54e6 --- /dev/null +++ b/Resources/Prototypes/_CP14/Entities/Objects/Specific/Alchemy/vials_filled.yml @@ -0,0 +1,139 @@ +# Raw materials + +- type: entity + id: CP14VialSmallBloodFlowerSap + parent: CP14VialSmall + suffix: Bloodflower sap + components: + - type: SolutionContainerManager + solutions: + vial: + reagents: + - ReagentId: CP14BloodFlowerSap + Quantity: 10 + +- type: entity + id: CP14VialSmallAgaricMushroom + parent: CP14VialSmall + suffix: Fly agaric juice + components: + - type: SolutionContainerManager + solutions: + vial: + reagents: + - ReagentId: CP14AgaricMushroom + Quantity: 10 + +- type: entity + id: CP14VialSmallGroundQuartz + parent: CP14VialSmall + suffix: Ground Quartz + components: + - type: SolutionContainerManager + solutions: + vial: + reagents: + - ReagentId: CP14GroundQuartz + Quantity: 10 + +- type: entity + id: CP14VialSmallWildSage + parent: CP14VialSmall + suffix: Wild sage Sap + components: + - type: SolutionContainerManager + solutions: + vial: + reagents: + - ReagentId: CP14WildSageSap + Quantity: 10 + +- type: entity + id: CP14VialSmallBlueAmanita + parent: CP14VialSmall + suffix: Blue Amanita + components: + - type: SolutionContainerManager + solutions: + vial: + reagents: + - ReagentId: CP14BlueAmanita + Quantity: 10 + +- type: entity + id: CP14VialSmallDayflin + parent: CP14VialSmall + suffix: Dayflin + components: + - type: SolutionContainerManager + solutions: + vial: + reagents: + - ReagentId: CP14YellowDayflinPulp + Quantity: 10 + +- type: entity + id: CP14VialTinyChromiumSlime + parent: CP14VialTiny + suffix: Chromium Slime + components: + - type: SolutionContainerManager + solutions: + vial: + reagents: + - ReagentId: CP14ChromiumSlime + Quantity: 5 + +- type: entity + id: CP14VialTinyLumiMushroom + parent: CP14VialTiny + suffix: LumiShroom + components: + - type: SolutionContainerManager + solutions: + vial: + reagents: + - ReagentId: CP14LumiMushroom + Quantity: 5 + +# Ready potions + +- type: entity + id: CP14VialSmallHealthPotion + parent: CP14VialSmall + suffix: Health potion 50% + components: + - type: Label + currentLabel: cp14-potion-label-health + - type: SolutionContainerManager + solutions: + vial: + reagents: + - ReagentId: CP14BasicEffectHealBrute + Quantity: 4 + - ReagentId: CP14BasicEffectBloodRestore + Quantity: 2 + - ReagentId: CP14BasicEffectEmoteCough + Quantity: 1 + - ReagentId: CP14BasicEffectEmpty + Quantity: 3 + +- type: entity + id: CP14VialSmallManaPotion + parent: CP14VialSmall + suffix: Mana potion 50% + components: + - type: Label + currentLabel: cp14-potion-label-mana + - type: SolutionContainerManager + solutions: + vial: + reagents: + - ReagentId: CP14BasicEffectHealMana + Quantity: 4 + - ReagentId: CP14BasicEffectSatiateThirst + Quantity: 2 + - ReagentId: CP14BasicEffectDrunk + Quantity: 1 + - ReagentId: CP14BasicEffectEmpty + Quantity: 3 \ No newline at end of file diff --git a/Resources/Prototypes/_CP14/Recipes/Workbench/furnace.yml b/Resources/Prototypes/_CP14/Recipes/Workbench/furnace.yml index fe726e89c5..45abfc53f0 100644 --- a/Resources/Prototypes/_CP14/Recipes/Workbench/furnace.yml +++ b/Resources/Prototypes/_CP14/Recipes/Workbench/furnace.yml @@ -37,3 +37,46 @@ entities: CP14QuartzShard: 1 result: CP14GlassSheet1 + +- type: CP14Recipe + id: CP14GlassSheetShard1 + tag: CP14RecipeMeltingFurnace + craftTime: 2 + entities: + CP14GlassShard: 3 + result: CP14GlassSheet1 + +- type: CP14Recipe + id: CP14VialTiny + tag: CP14RecipeMeltingFurnace + craftTime: 3 + stacks: + CP14GlassSheet: 1 + result: CP14VialTiny + +- type: CP14Recipe + id: CP14VialTinyReinforced + tag: CP14RecipeMeltingFurnace + craftTime: 3 + stacks: + CP14CopperBar: 1 + CP14GlassSheet: 1 + result: CP14VialTinyReinforced + +- type: CP14Recipe + id: CP14VialSmall + tag: CP14RecipeMeltingFurnace + craftTime: 3 + stacks: + CP14GlassSheet: 2 + result: CP14VialSmall + +- type: CP14Recipe + id: CP14VialSmallReinforced + tag: CP14RecipeMeltingFurnace + craftTime: 3 + stacks: + CP14CopperBar: 1 + CP14GlassSheet: 2 + result: CP14VialSmallReinforced + \ No newline at end of file diff --git a/Resources/Textures/_CP14/Objects/Specific/Alchemy/vial_small.rsi/meta.json b/Resources/Textures/_CP14/Objects/Specific/Alchemy/vial_small.rsi/meta.json index 65e2e349a7..711e808e9c 100644 --- a/Resources/Textures/_CP14/Objects/Specific/Alchemy/vial_small.rsi/meta.json +++ b/Resources/Textures/_CP14/Objects/Specific/Alchemy/vial_small.rsi/meta.json @@ -24,6 +24,12 @@ }, { "name": "liq-5" + }, + { + "name": "reinforcement" + }, + { + "name": "reinforcement_back" } ] } \ No newline at end of file diff --git a/Resources/Textures/_CP14/Objects/Specific/Alchemy/vial_small.rsi/reinforcement.png b/Resources/Textures/_CP14/Objects/Specific/Alchemy/vial_small.rsi/reinforcement.png new file mode 100644 index 0000000000000000000000000000000000000000..4c65748881a73b2217b0007e8a1b7362c29c6bfe GIT binary patch literal 234 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}OFUg1Ln2y} z6C_v{Cy4Yk1sYspRNg7&U90<#U1Cmp#rLMk4=-@@w!J&6e!{FfC*W1~$Ng8XKeE58 zD;Hp(?Z>&i|KrJvcZ!N+4?1-{y8ZsBMA}iqKi8+#pGvshdxzQNCsU$5}=52q1*?^#JHUH9wd@82q0aJJ<{$!rS>wZuJ>?9s; a28Ik>gU|JnUHU-xGI+ZBxvXuGF!D7VvX zBEMIy?!W23q9(lk9q1q^;oHIk1Pjk?`|mtA*IoFb2FSn+W`@X1%7%Yr_nigW#o+1c K=d#Wzp$Py;)jTr* literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Objects/Specific/Alchemy/vial_tiny.rsi/reinforcement_back.png b/Resources/Textures/_CP14/Objects/Specific/Alchemy/vial_tiny.rsi/reinforcement_back.png new file mode 100644 index 0000000000000000000000000000000000000000..e49ed48797f7509f3c8c3058cfa260e2457252ca GIT binary patch literal 156 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}VV*9IArY;~ z2@GnHb|uq)O~dAiF}<4~P5F1fPXE}42h!TjtG@)dZE^j6 z!mL{-;8pfVdFg7A3!*)0PC0KtdJk$yur6U@I3B2U)b71m3eW}yPgg&ebxsLQ0C9XZ Axc~qF literal 0 HcmV?d00001