Merge branch 'fix-charms' into 'master'

Correctly load "Nothing" entries in charm drop tables.

See merge request 2009scape/rs09-thanos-tool!1
This commit is contained in:
Ceikry 2021-12-26 18:04:21 +00:00
commit 4a6b19af30
2 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ enum class Editors(val data: EditorData) {
table.ids = dropTable["ids"].toString()
parseTable(dropTable["main"] as JSONArray,table,false)
parseTable(dropTable["default"] as JSONArray,table,true)
parseTable(dropTable["charm"] as JSONArray,table,false)
parseTable(dropTable["charm"] as JSONArray,table.charmTable,false)
table.description = (dropTable["description"] ?: "").toString()
TableData.tables.add(table)
counter++

View file

@ -36,7 +36,7 @@ object FileLoader{
table.ids = dropTable["ids"].toString()
parseTable(dropTable["main"] as JSONArray,table,false)
parseTable(dropTable["default"] as JSONArray,table,true)
parseTable(dropTable["charm"] as JSONArray,table,false)
parseTable(dropTable["charm"] as JSONArray,table.charmTable,false)
table.description = (dropTable["description"] ?: "").toString()
TableData.tables.add(table)
counter++
@ -103,4 +103,4 @@ class NPCDropTable() : WeightBasedTable(){
}
return super.add(element)
}
}
}