Separated normal remove_head and hat keys/flags
This commit is contained in:
@@ -303,10 +303,13 @@ public final class Appearance {
|
||||
drawClothes(7, getLegs().getLook());
|
||||
}
|
||||
if ((hat != null && hat.getDefinition().getConfiguration(ItemConfigParser.REMOVE_HEAD, false)) || castleWarsHood) {
|
||||
flagHatClipping();
|
||||
clearBodyPart(8);
|
||||
} else {
|
||||
drawClothes(8, getHair().getLook());
|
||||
}
|
||||
if((hat != null && hat.getDefinition().getConfiguration(ItemConfigParser.IS_HAT,false))){
|
||||
flagHatClipping();
|
||||
}
|
||||
if (hands != null) {
|
||||
drawItem(9, hands);
|
||||
} else {
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user