mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-04 08:39:05 +00:00
Some more minor clean up (#215)
* General clean up - Reduced woodcutting code by alot, reverted the array to an enum - Moved the login player method to the packet sender - Deleted some dead code/cleaned up * More random cleanup/refractoring - Moved combat constants to combatconstants.java - Moved dialogue options to dialogueoptions.java - Deleted more dead code * Replaced some poorly written methods - refreshSkill, levelUp, and getTotalLevel all used way too much code for such a simple function so cleaned it up - deleted a few other bits of dead code * Fight caves - Should fix fight caves npcs nulling out in the middle of your waves if they are too far away - Also removed some unneeded scynchronization in itemassistant.java * Gates - Started cleaning up gate system, still can be improved a lot more
This commit is contained in:
committed by
Daniel Ginovker
parent
20303071de
commit
68256e41d8
@@ -12,7 +12,7 @@ public class GameConstants {
|
||||
MESSAGE_DELAY = 6000, MAX_PLAYERS = 100, REQ_AMOUNT = 150;
|
||||
public final static boolean SOUND = true,
|
||||
GUILDS = true, WORLD_LIST_FIX = false,
|
||||
PARTY_ROOM_DISABLED = true, COMBAT_SOUNDS = true,
|
||||
PARTY_ROOM_DISABLED = true,
|
||||
PRINT_OBJECT_ID = false, EXPERIMENTS = false;
|
||||
public static int[] SIDEBARS = { 2423, 3917, 638, 3213, 1644, 5608, 1151,
|
||||
18128, 5065, 5715, 2449, 904, 147, 962 };
|
||||
@@ -145,30 +145,31 @@ public class GameConstants {
|
||||
public static boolean ADMIN_CAN_TRADE = false; // can admins trade?
|
||||
public final static boolean ADMIN_DROP_ITEMS = false;
|
||||
public final static boolean ADMIN_CAN_SELL_ITEMS = false;
|
||||
|
||||
public final static int RESPAWN_X = 3222; // when dead respawn here
|
||||
|
||||
public final static int RESPAWN_Y = 3218;
|
||||
|
||||
public final static int DUELING_RESPAWN_X = 3362;
|
||||
|
||||
public final static int DUELING_RESPAWN_Y = 3263;
|
||||
|
||||
public final static int NO_TELEPORT_WILD_LEVEL = 20;
|
||||
public final static int SKULL_TIMER = 1200;
|
||||
public final static int TELEBLOCK_DELAY = 20000;
|
||||
public final static boolean SINGLE_AND_MULTI_ZONES = true;
|
||||
public final static boolean COMBAT_LEVEL_DIFFERENCE = true;
|
||||
|
||||
public final static boolean ITEM_REQUIREMENTS = true;
|
||||
public final static int MELEE_EXP_RATE = 4; // damage * exp rate
|
||||
public final static int RANGE_EXP_RATE = 4;
|
||||
public final static int MAGIC_EXP_RATE = 4;
|
||||
|
||||
public final static int CASTLE_WARS_X = 2439;
|
||||
|
||||
public final static int CASTLE_WARS_Y = 3087;
|
||||
|
||||
public static double XP_RATE = 1;
|
||||
|
||||
public final static int INCREASE_SPECIAL_AMOUNT = 17500;
|
||||
public final static int GOD_SPELL_CHARGE = 300000;
|
||||
public final static boolean CORRECT_ARROWS = true;
|
||||
public final static boolean CRYSTAL_BOW_DEGRADES = true;
|
||||
public final static int SAVE_TIMER = 120; // save every 2 minute
|
||||
|
||||
public final static int NPC_RANDOM_WALK_DISTANCE = 5;
|
||||
|
||||
public final static int NPC_FOLLOW_DISTANCE = 10;
|
||||
|
||||
public final static String[] UNDEAD = {
|
||||
"armoured zombie", "ankous", "banshee", "crawling hand", "dried zombie", "ghost", "ghostly warrior", "ghast",
|
||||
"mummy", "mighty banshee", "reventant imp", "reventant goblin", "reventant icefiend", "reventant pyrefiend",
|
||||
@@ -177,8 +178,11 @@ public class GameConstants {
|
||||
"shade", "skeleton", "skeleton brute", "skeleton thug", "skeleton warload", "summoned zombie",
|
||||
"skorge", "tortured soul", "undead chicken", "undead cow", "undead one", "undead troll", "zombie", "zombie rat", "zogre"
|
||||
};
|
||||
|
||||
public final static int TIMEOUT = 60;
|
||||
|
||||
public final static int CYCLE_TIME = 600;
|
||||
|
||||
public final static int BUFFER_SIZE = 10000;
|
||||
|
||||
public final static int ATTACK = 0, DEFENCE = 1, STRENGTH = 2,
|
||||
|
||||
Reference in New Issue
Block a user