From c97440dba4d02fd3e6c8578b33a3d114f4c319ed Mon Sep 17 00:00:00 2001 From: Johannes Lohrer Date: Sun, 1 Dec 2013 00:58:22 +0100 Subject: [PATCH] renamed cards --- li/cil/oc/common/item/Card.scala | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/li/cil/oc/common/item/Card.scala b/li/cil/oc/common/item/Card.scala index 170d28002..03081ee93 100644 --- a/li/cil/oc/common/item/Card.scala +++ b/li/cil/oc/common/item/Card.scala @@ -3,21 +3,8 @@ package li.cil.oc.common.item import net.minecraft.item.ItemStack -class Card(val parent: Delegator,val tier:Int) extends Delegate { - val unlocalizedName = "Card" +class Card(val parent: Delegator, val tier: Int) extends Delegate { + val baseName = "Card" + val unlocalizedName = baseName + Array("Basic", "Advanced", "Professional").apply(tier) - override def displayName(stack: ItemStack) = { - if (tier == 0) { - Option("Redstone Card") - } - else if (tier == 1) { - Option("Golden Card") - } - else if (tier == 2) { - Option("Diamond Card") - } - else{ - Option(unlocalizedName) - } - } }