Separated normal remove_head and hat keys/flags

This commit is contained in:
Ceikry
2021-03-15 17:26:39 -05:00
parent 30576b9eb4
commit 3ebd9c2614
3 changed files with 22 additions and 16 deletions
@@ -1,14 +1,14 @@
package rs09.game.system.config
import rs09.ServerConstants
import core.cache.def.impl.ItemDefinition
import core.game.node.entity.impl.Animator
import core.game.node.entity.player.link.audio.Audio
import rs09.game.system.SystemLogger
import core.game.world.update.flag.context.Animation
import org.json.simple.JSONArray
import org.json.simple.JSONObject
import org.json.simple.parser.JSONParser
import rs09.ServerConstants
import rs09.game.system.SystemLogger
import java.io.FileReader
class ItemConfigParser {
@@ -93,6 +93,8 @@ class ItemConfigParser {
*/
const val REMOVE_HEAD = "remove_head"
const val IS_HAT = "hat"
/**
* The remove beard item configuration key.
*/
@@ -256,6 +258,7 @@ class ItemConfigParser {
"remove_sleeves",
"remove_beard",
"remove_head",
"hat",
"destroy",
"lendable",
"tradeable" -> configs.put(it.key.toString(),it.value.toString().toBoolean())