mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 10:21:45 -04:00
renamed cards
This commit is contained in:
parent
a077cca654
commit
c97440dba4
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user