mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
Script integration
A few example .py scripts Improvements on the lootservice design
This commit is contained in:
@@ -453,6 +453,15 @@ public class TangibleObject extends SWGObject {
|
||||
}
|
||||
}
|
||||
|
||||
public List<LootGroup> getLootGroups() {
|
||||
return lootGroups;
|
||||
}
|
||||
|
||||
public void addToLootGroups(String[] lootPoolName, int[] lootPoolChance, int lootGroupChance) {
|
||||
LootGroup lootGroup = new LootGroup(lootPoolName, lootPoolChance, lootGroupChance);
|
||||
this.lootGroups.add(lootGroup);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void sendBaselines(Client destination) {
|
||||
@@ -477,13 +486,4 @@ public class TangibleObject extends SWGObject {
|
||||
|
||||
|
||||
}
|
||||
|
||||
public List<LootGroup> getLootGroups() {
|
||||
return lootGroups;
|
||||
}
|
||||
|
||||
public void addToLootGroups(String[] lootPoolName, int[] lootPoolChance, int lootGroupChance) {
|
||||
LootGroup lootGroup = new LootGroup(lootPoolName, lootPoolChance, lootGroupChance);
|
||||
this.lootGroups.add(lootGroup);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user