Refactor item_type
This commit is contained in:
1 parent
87290baa52
commit
df5c607375
24 files changed
+137
-203
No files matched your search
@@ -156,7 +156,7 @@ public class StealPowerAction extends AbstractPowerAction {
|
||||
if (myCIM == null || ownerCIM == null)
|
||||
return;
|
||||
|
||||
if (tar.getItemBase().getType().equals(ItemType.GOLD)) {
|
||||
if (tar.template.item_type.equals(ItemType.GOLD)) {
|
||||
//stealing gold
|
||||
if (!myCIM.transferGoldToMyInventory((AbstractCharacter) owner, amount))
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user