Added Ritual: Song of the Cleansing Soul to remove Living Armour upgrades from the armour.
This commit is contained in:
parent
b5c8c2242a
commit
7610329d0a
12 changed files with 256 additions and 65 deletions
|
@ -298,4 +298,18 @@ public class LivingArmour implements ILivingArmour
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean removeUpgrade(EntityPlayer user, LivingArmourUpgrade upgrade)
|
||||
{
|
||||
String key = upgrade.getUniqueIdentifier();
|
||||
if (upgradeMap.containsKey(key))
|
||||
{
|
||||
upgradeMap.remove(key);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue