Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
fix tooltip health bonus
Browse files Browse the repository at this point in the history
  • Loading branch information
Chasmical committed Jul 17, 2021
1 parent 1fe4bab commit 53c240c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions RogueLibsCore.Test/Tests/Items/SpiceRack.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand All @@ -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"));
Expand Down Expand Up @@ -63,7 +58,7 @@ public CustomTooltip CombineTooltip(InvItem other)
if (!CombineFilter(other)) return default;

SpicedHook hook = other.GetHook<SpicedHook>();
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);
}

Expand Down

0 comments on commit 53c240c

Please sign in to comment.