Browse Source

human blood runes cost 0

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
b731291e6c
  1. 17
      src/engine/objects/RuneBaseEffect.java

17
src/engine/objects/RuneBaseEffect.java

@ -32,10 +32,21 @@ public class RuneBaseEffect extends AbstractGameObject {
super(rs); super(rs);
this.type = rs.getByte("type"); this.type = rs.getByte("type");
this.name = rs.getString("name"); 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 * Getters
*/ */

Loading…
Cancel
Save