Attempts to fix loot bugs

This commit is contained in:
CharonInferar
2014-05-04 01:31:00 +02:00
parent 5e4062ae38
commit 43d1bd5ea4
7 changed files with 84 additions and 22 deletions
+10
View File
@@ -47,6 +47,7 @@ public class LootRollSession {
private boolean allowRareLoot;
private boolean increasedRLSChance;
private int lootedObjectLevel=0;
private int lootedObjectDifficulty=0;
public LootRollSession(){
}
@@ -65,6 +66,7 @@ public class LootRollSession {
if (lootedObject instanceof CreatureObject){
CreatureObject lootedCreature = (CreatureObject)lootedObject;
lootedObjectLevel = lootedCreature.getLevel();
lootedObjectDifficulty = lootedCreature.getDifficulty();
// Exclude rare loot depending on creature level
// For groups maybe average CL?
if (requester.getLevel()-lootedCreature.getLevel()<=6){
@@ -171,4 +173,12 @@ public class LootRollSession {
public void setLootedObjectLevel(int lootedObjectLevel) {
this.lootedObjectLevel = lootedObjectLevel;
}
public int getLootedObjectDifficulty() {
return lootedObjectDifficulty;
}
public void setLootedObjectDifficulty(int lootedObjectDifficulty) {
this.lootedObjectDifficulty = lootedObjectDifficulty;
}
}