mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-06 21:13:37 -04:00
Fixed table ID output
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ class LootTableLoader : DataLoader() {
|
||||
}
|
||||
|
||||
@Throws(IOException::class)
|
||||
public override fun load() {
|
||||
override fun load() {
|
||||
SdbLoader.load(File("serverdata/loot/loot_table.sdb")).use { set ->
|
||||
val itemGroups = set.getTextArrayParser("items_group_([0-9]+)")
|
||||
val chanceGroups = set.getIntegerArrayParser("chance_group_([0-9]+)")
|
||||
|
||||
+2
-2
@@ -183,10 +183,10 @@ class LootGenerationService : Service() {
|
||||
|
||||
if (tableRoll > tableChance) {
|
||||
// Skip ahead if there's no drop chance
|
||||
adminOutput1.append("/ \\#FF0000 loot_table").append(tableId)
|
||||
adminOutput1.append("/ \\#FF0000 loot_table").append(tableId+1)
|
||||
break
|
||||
}
|
||||
adminOutput1.append("/ \\#00FF00 loot_table").append(tableId)
|
||||
adminOutput1.append("/ \\#00FF00 loot_table").append(tableId+1)
|
||||
|
||||
val groupRoll = random.nextInt(100) + 1
|
||||
val lootTableItem = lootTables.getLootTableItem(npcTable.lootTable, difficulty.name, level) ?: continue
|
||||
|
||||
Reference in New Issue
Block a user