Add snow toggle

This commit is contained in:
ceikry 2021-12-04 16:11:28 -06:00
parent d917cd6f0d
commit f967596c1b
2 changed files with 6 additions and 1 deletions

View file

@ -65,4 +65,5 @@
- Void mace now consumes runes correctly
- Add remote kicking support to the Management Server
- Added Christmas Event :)
- Added snow toggle to client config
< --- ABOVE Released December 4, 2021 https://gitlab.com/2009scape/2009scape/-/tags/Dec-4-2021 ---- >

View file

@ -36,6 +36,9 @@ object GameConfig {
@JvmField
var WORLD_MAP_DEBUG = false
@JvmField
var DO_SNOW_DECEMBER = true
/**
* Context Menu Presets
*/
@ -186,6 +189,7 @@ object GameConfig {
if(data.containsKey("customization")){
val custom = data["customization"] as JSONObject
if(custom.containsKey("login_theme")) LOGIN_THEME = custom["login_theme"].toString()
if(custom.containsKey("december_snow")) DO_SNOW_DECEMBER = custom["december_snow"] as Boolean
//Right-click menu customizations
if(custom.containsKey("right_click_menu")){
@ -386,7 +390,7 @@ object GameConfig {
}
9 -> HALLOWEEN_EVENT_ENABLED = true
10 -> THANKSGIVING_EVENT_ENABLED = true
11 -> CHRISTMAS_EVENT_ENABLED = true
11 -> CHRISTMAS_EVENT_ENABLED = DO_SNOW_DECEMBER
}
}
}