From 33bd9c34c6e8edd8de48875b584a1f948afbaa39 Mon Sep 17 00:00:00 2001 From: the-real-herowl Date: Wed, 17 Apr 2024 21:51:12 +0200 Subject: [PATCH] Added the ominous potion --- mods/ITEMS/mcl_potions/functions.lua | 3 +++ mods/ITEMS/mcl_potions/potions.lua | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/mods/ITEMS/mcl_potions/functions.lua b/mods/ITEMS/mcl_potions/functions.lua index 8d85b19b6..fa524996b 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -713,6 +713,9 @@ mcl_potions.register_effect({ mcl_potions.register_effect({ name = "bad_omen", description = S("Bad Omen"), + get_tt = function(factor) + return S("danger is imminent") + end, particle_color = "#472331", }) diff --git a/mods/ITEMS/mcl_potions/potions.lua b/mods/ITEMS/mcl_potions/potions.lua index 7e12d9a94..b651cfbb2 100644 --- a/mods/ITEMS/mcl_potions/potions.lua +++ b/mods/ITEMS/mcl_potions/potions.lua @@ -806,3 +806,22 @@ mcl_potions.register_potion({ has_arrow = true, }) +mcl_potions.register_potion({ + name = "ominous", + desc_prefix = S("Ominous"), + _tt = nil, + _longdesc = S("Attracts danger."), + image = table.concat({ + "(mcl_potions_potion_overlay.png^[colorize:red:100)", + "^mcl_potions_splash_overlay.png^[colorize:black:100", + "^mcl_potions_potion_bottle.png", + }), + _effect_list = { + bad_omen = { + dur = 6000, + }, + }, + has_splash = false, + has_lingering = false, +}) +