mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-21 09:02:07 -07:00
Separated normal remove_head and hat keys/flags
This commit is contained in:
parent
30576b9eb4
commit
3ebd9c2614
3 changed files with 22 additions and 16 deletions
|
|
@ -28531,7 +28531,7 @@
|
|||
"ge_buy_limit": "2",
|
||||
"archery_ticket_price": "0",
|
||||
"durability": null,
|
||||
"remove_head": true
|
||||
"hat": true
|
||||
},
|
||||
{
|
||||
"id": "2634",
|
||||
|
|
@ -28555,7 +28555,7 @@
|
|||
"ge_buy_limit": "2",
|
||||
"archery_ticket_price": "0",
|
||||
"durability": null,
|
||||
"remove_head": true
|
||||
"hat": true
|
||||
},
|
||||
{
|
||||
"id": "2636",
|
||||
|
|
@ -28579,7 +28579,7 @@
|
|||
"ge_buy_limit": "2",
|
||||
"archery_ticket_price": "0",
|
||||
"durability": null,
|
||||
"remove_head": true
|
||||
"hat": true
|
||||
},
|
||||
{
|
||||
"id": "2638",
|
||||
|
|
@ -28603,7 +28603,7 @@
|
|||
"ge_buy_limit": "2",
|
||||
"archery_ticket_price": "0",
|
||||
"durability": null,
|
||||
"remove_head": true
|
||||
"hat": true
|
||||
},
|
||||
{
|
||||
"id": "2640",
|
||||
|
|
@ -28627,7 +28627,7 @@
|
|||
"ge_buy_limit": "2",
|
||||
"archery_ticket_price": "0",
|
||||
"durability": null,
|
||||
"remove_head": true
|
||||
"hat": true
|
||||
},
|
||||
{
|
||||
"id": "2642",
|
||||
|
|
@ -28651,7 +28651,7 @@
|
|||
"ge_buy_limit": "2",
|
||||
"archery_ticket_price": "0",
|
||||
"durability": null,
|
||||
"remove_head": true
|
||||
"hat": true
|
||||
},
|
||||
{
|
||||
"id": "2644",
|
||||
|
|
@ -61923,7 +61923,7 @@
|
|||
"ge_buy_limit": "100",
|
||||
"archery_ticket_price": "0",
|
||||
"durability": null,
|
||||
"remove_head": true
|
||||
"hat": true
|
||||
},
|
||||
{
|
||||
"id": "6383",
|
||||
|
|
@ -97042,7 +97042,7 @@
|
|||
"equipment_slot": "0",
|
||||
"archery_ticket_price": "0",
|
||||
"durability": null,
|
||||
"remove_head": true
|
||||
"hat": true
|
||||
},
|
||||
{
|
||||
"id": "10694",
|
||||
|
|
@ -97056,7 +97056,7 @@
|
|||
"equipment_slot": "0",
|
||||
"archery_ticket_price": "0",
|
||||
"durability": null,
|
||||
"remove_head": true
|
||||
"hat": true
|
||||
},
|
||||
{
|
||||
"id": "10695",
|
||||
|
|
@ -97070,7 +97070,7 @@
|
|||
"equipment_slot": "0",
|
||||
"archery_ticket_price": "0",
|
||||
"durability": null,
|
||||
"remove_head": true
|
||||
"hat": true
|
||||
},
|
||||
{
|
||||
"id": "10696",
|
||||
|
|
@ -128312,7 +128312,7 @@
|
|||
"bonuses": "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0",
|
||||
"archery_ticket_price": "0",
|
||||
"durability": null,
|
||||
"remove_head": true
|
||||
"hat": true
|
||||
},
|
||||
{
|
||||
"id": "13812",
|
||||
|
|
@ -128329,7 +128329,7 @@
|
|||
"bonuses": "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0",
|
||||
"archery_ticket_price": "0",
|
||||
"durability": null,
|
||||
"remove_head": true
|
||||
"hat": true
|
||||
},
|
||||
{
|
||||
"id": "13813",
|
||||
|
|
@ -128346,7 +128346,7 @@
|
|||
"bonuses": "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0",
|
||||
"archery_ticket_price": "0",
|
||||
"durability": null,
|
||||
"remove_head": true
|
||||
"hat": true
|
||||
},
|
||||
{
|
||||
"id": "13814",
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue