mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-19 09:02:54 -04:00
Attempts to fix loot bugs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user