From 53c240c158c063d1c38e4c959ee3e593fbf41f88 Mon Sep 17 00:00:00 2001 From: Abbysssal <55982389+Abbysssal@users.noreply.github.com> Date: Sat, 17 Jul 2021 13:10:11 +0700 Subject: [PATCH] fix tooltip health bonus --- RogueLibsCore.Test/Tests/Items/SpiceRack.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/RogueLibsCore.Test/Tests/Items/SpiceRack.cs b/RogueLibsCore.Test/Tests/Items/SpiceRack.cs index d54fa81e3..ac71ccfde 100644 --- a/RogueLibsCore.Test/Tests/Items/SpiceRack.cs +++ b/RogueLibsCore.Test/Tests/Items/SpiceRack.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; +using UnityEngine; namespace RogueLibsCore.Test { @@ -22,7 +17,7 @@ public static void Setup() UnlockCost = 10, CharacterCreationCost = 3, LoadoutCost = 3, - Prerequisites = { "FoodProcessor", "QuantumFud" }, + Prerequisites = { "FoodProcessor", nameof(QuantumFud) }, }); SeasonCursorText = RogueLibs.CreateCustomName("Season", "Interface", new CustomNameInfo("Season")); @@ -63,7 +58,7 @@ public CustomTooltip CombineTooltip(InvItem other) if (!CombineFilter(other)) return default; SpicedHook hook = other.GetHook(); - int bonus = hook is null ? (int)Mathf.Ceil(Instance.healthChange / 4f) : hook.HealthBonus; + int bonus = hook is null ? (int)Mathf.Ceil(other.healthChange / 4f) : hook.HealthBonus; return new CustomTooltip($"+{bonus}", Color.green); }