From b731291e6c0f7061c07e8d01236d2edef9fd3b1c Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 3 May 2024 21:22:27 -0500 Subject: [PATCH] human blood runes cost 0 --- src/engine/objects/RuneBaseEffect.java | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/RuneBaseEffect.java b/src/engine/objects/RuneBaseEffect.java index 3a285e44..ce4ddfce 100644 --- a/src/engine/objects/RuneBaseEffect.java +++ b/src/engine/objects/RuneBaseEffect.java @@ -32,10 +32,21 @@ public class RuneBaseEffect extends AbstractGameObject { super(rs); this.type = rs.getByte("type"); this.name = rs.getString("name"); - this.amount = rs.getShort("amount"); - this.runeBaseID = rs.getInt("runeID"); - } + RuneBase rb = RuneBase.getRuneBase(rs.getInt("runeID")); + switch (rb.getName()) { + case "Born of the Ethyri": + case "Born of the Taripontor": + case "Born of the Gwendannen": + case "Born of the Invorri": + case "Born of the Irydnu": + this.amount = 0; + break; + default: + this.amount = rs.getShort("amount"); + this.runeBaseID = rs.getInt("runeID"); + } + } /* * Getters */