From bc852f24167bf4613de17080098f16d1c28eeb8d Mon Sep 17 00:00:00 2001 From: Pedro Cruz Date: Fri, 16 Aug 2024 19:44:07 -0300 Subject: [PATCH] feat: add new liquids 13.40 (#2814) --- data/items/items.xml | 42 +++++++++++++------------ src/items/functions/item/item_parse.hpp | 2 ++ src/utils/utils_definitions.hpp | 18 ++++++----- 3 files changed, 34 insertions(+), 28 deletions(-) diff --git a/data/items/items.xml b/data/items/items.xml index 9fdc89bbd8f..4978cf0bdc4 100644 --- a/data/items/items.xml +++ b/data/items/items.xml @@ -1,26 +1,28 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/items/functions/item/item_parse.hpp b/src/items/functions/item/item_parse.hpp index f63b6bc0689..e9f6133eb3a 100644 --- a/src/items/functions/item/item_parse.hpp +++ b/src/items/functions/item/item_parse.hpp @@ -213,6 +213,8 @@ const phmap::flat_hash_map FluidTypesMap = { { "tea", FLUID_TEA }, { "mead", FLUID_MEAD }, { "ink", FLUID_INK }, + { "candyfluid", FLUID_CANDY }, + { "chocolate", FLUID_CHOCOLATE }, }; const phmap::flat_hash_map WeaponTypesMap = { diff --git a/src/utils/utils_definitions.hpp b/src/utils/utils_definitions.hpp index abf690522d5..ce71bbf0c9b 100644 --- a/src/utils/utils_definitions.hpp +++ b/src/utils/utils_definitions.hpp @@ -348,23 +348,25 @@ enum Fluids_t : uint8_t { FLUID_NONE = 0, /* Blue */ FLUID_WATER = 1, /* Blue */ FLUID_WINE = 2, /* Purple */ - FLUID_BEER = 3, /* Brown */ - FLUID_MUD = 4, /* Brown */ + FLUID_BEER = 3, /* Orange */ + FLUID_MUD = 4, /* Orange */ FLUID_BLOOD = 5, /* Red */ FLUID_SLIME = 6, /* Green */ - FLUID_OIL = 7, /* Brown */ + FLUID_OIL = 7, /* Orange */ FLUID_URINE = 8, /* Yellow */ FLUID_MILK = 9, /* White */ FLUID_MANA = 10, /* Purple */ FLUID_LIFE = 11, /* Red */ FLUID_LEMONADE = 12, /* Yellow */ - FLUID_RUM = 13, /* Brown */ + FLUID_RUM = 13, /* Orange */ FLUID_FRUITJUICE = 14, /* Yellow */ FLUID_COCONUTMILK = 15, /* White */ - FLUID_MEAD = 16, /* Brown */ - FLUID_TEA = 17, /* Brown */ - FLUID_INK = 18 /* Black */ - // 12.85 last fluid is 18, 19+ is a loop from 0 to 18 over and over again + FLUID_MEAD = 16, /* Orange */ + FLUID_TEA = 17, /* Orange */ + FLUID_INK = 18, /* Black */ + FLUID_CANDY = 19, /* Red with white pieces */ + FLUID_CHOCOLATE = 20, /* Brown */ + // 13.40 last fluid is 20, 21+ is a loop from 0 to 20 over and over again }; enum SquareColor_t : uint8_t {