forked from MagicBane/Server
New rolling duration method moved to manager singleton.
This commit is contained in:
@@ -1014,28 +1014,6 @@ public class NPC extends AbstractCharacter {
|
||||
return filteredItemList;
|
||||
}
|
||||
|
||||
public int getRollingTimeInSeconds(int itemID) {
|
||||
|
||||
ItemTemplate ib = ItemTemplate.templates.get(itemID);
|
||||
|
||||
if (ib == null)
|
||||
return 0;
|
||||
|
||||
if (ItemTemplate.templates.get(itemID).item_type == ItemType.SCROLL)
|
||||
return this.getRank() * 60 * 60 * 3;
|
||||
|
||||
float time;
|
||||
|
||||
if (this.building == null)
|
||||
return 600;
|
||||
|
||||
float rank = this.building.getRank() - 1;
|
||||
float rate = (float) (2.5 * rank);
|
||||
time = (20 - rate);
|
||||
time *= 60;
|
||||
return (int) time;
|
||||
}
|
||||
|
||||
public boolean remove() {
|
||||
|
||||
Building building;
|
||||
|
||||
Reference in New Issue
Block a user