Sir R. M8gic1an
2010-07-23 06:34:49
There's a simple solution for this, originally suggested by Nielsie for a completly different purpose.
This is what we have:
[php]
TREE_NORMAL = 0;
TREE_OAK = 1;
TREE_WILLOW = 2;
TREE_MAPLE = 3;
TREE_YEW = 4;
TREE_MAGIC = 5;
ROCK_TIN = 6;
ROCK_COPPER = 7;
ROCK_IRON = 8;
MSI_BANK_VE = 9; // Includes the 'MSI_' because there are bank constants in SRL's Bank.scar
MSI_BANK_DB = 10;
MSI_BANK_GE = 11;
MSI_BANK_FE = 12;
DBOX_PS = 13;
FISH_SPOT_NET = 14;
FISH_SPOT_BAIT = 15;
[/php]
This is what I'd rather have:
[php]
TREE_NORMAL = 10;
TREE_OAK = 11;
TREE_WILLOW = 12;
TREE_MAPLE = 13;
TREE_YEW = 14;
TREE_MAGIC = 15;
ROCK_TIN = 20;
ROCK_COPPER = 21;
ROCK_IRON = 22;
MSI_BANK_VE = 30; // Includes the 'MSI_' because there are bank constants in SRL's Bank.scar
MSI_BANK_DB = 31;
MSI_BANK_GE = 32;
MSI_BANK_FE = 33;
DBOX_PS = 40;
FISH_SPOT_NET = 51;
FISH_SPOT_BAIT = 52;
[/php]
Notice how there's 10 spaces between each?
Notice how it's still organized?
Is there any reason to NOT do this?
This way it is also easy to move them up and down if the needs arises.
'Oh shit, I need eleven spaces for rocks'
Problem solved:
[php]
TREE_NORMAL = 10;
TREE_OAK = 11;
TREE_WILLOW = 12;
TREE_MAPLE = 13;
TREE_YEW = 14;
TREE_MAGIC = 15;
ROCK_TIN = 20;
//…
ROCK_COPPER = 29;
ROCK_IRON = 30;
ROCK_COAL = 31;
//change these from 30 -> 60
MSI_BANK_VE = 60; // Includes the 'MSI_' because there are bank constants in SRL's Bank.scar
MSI_BANK_DB = 61;
MSI_BANK_GE = 62;
MSI_BANK_FE = 63;
DBOX_PS = 40;
FISH_SPOT_NET = 51;
FISH_SPOT_BAIT = 52;
[/php]
~RM