This commit is contained in:
2025-10-12 22:41:10 +03:00
parent ce480a1185
commit 128173339e
89 changed files with 12846 additions and 72 deletions

View File

@@ -0,0 +1,38 @@
package ee.futur.gotr.data;
import net.runelite.api.ItemID;
import net.runelite.api.ObjectID;
public class CellMapper {
public static int GetCellTier(int cellID) {
switch (cellID) {
case ItemID.WEAK_CELL:
return 1;
case ItemID.MEDIUM_CELL:
return 2;
case ItemID.STRONG_CELL:
return 3;
case ItemID.OVERCHARGED_CELL:
return 4;
default:
return -1;
}
}
public static int GetShieldTier(int shieldID) {
switch (shieldID) {
case ObjectID.INACTIVE_CELL_TILE:
return 0;
case ObjectID.WEAK_CELL_TILE:
return 1;
case ObjectID.MEDIUM_CELL_TILE:
return 2;
case ObjectID.STRONG_CELL_TILE:
return 3;
case ObjectID.OVERPOWERED_CELL_TILE:
return 4;
default:
return -1;
}
}
}