All the Stuff(Forgot to commit)
This commit is contained in:
parent
7eb2832f9b
commit
7d08458f3f
22 changed files with 1668 additions and 319 deletions
|
@ -59,7 +59,7 @@ Item newItem(int id, int cLevel){
|
|||
if(id != ITEM_NULL){
|
||||
if(cLevel > 999) cLevel = 999;
|
||||
item.countLevel = cLevel;
|
||||
if(id < 7 || id > 27 || id > 100) item.onlyOne = true; // Tools + Furniture.
|
||||
if(id < 7 || (id > 27 && id < 51) || id > 100) item.onlyOne = true; // Tools + Furniture.
|
||||
else item.onlyOne = false;
|
||||
}
|
||||
item.chestPtr = NULL;
|
||||
|
@ -158,12 +158,36 @@ char* getItemName(int itemID, int countLevel){
|
|||
case ITEM_GLASS: sprintf(currentName,"%d Glass", countLevel); return currentName;
|
||||
case ITEM_GEM: sprintf(currentName,"%d Gem", countLevel); return currentName;
|
||||
case ITEM_SLIME: sprintf(currentName,"%d Slime", countLevel); return currentName;
|
||||
|
||||
case ITEM_LOOM: return "Loom";
|
||||
case ITEM_ENCHANTER: return "Enchanter";
|
||||
case ITEM_WALL_WOOD: sprintf(currentName,"%d Wood Wall", countLevel); return currentName;
|
||||
case ITEM_WALL_STONE: sprintf(currentName,"%d Stone Wall", countLevel); return currentName;
|
||||
case ITEM_WALL_IRON: sprintf(currentName,"%d Iron Wall", countLevel); return currentName;
|
||||
case ITEM_WALL_GOLD: sprintf(currentName,"%d Gold Wall", countLevel); return currentName;
|
||||
case ITEM_WALL_GEM: sprintf(currentName,"%d Gem Wall", countLevel); return currentName;
|
||||
case ITEM_WOOL: sprintf(currentName,"%d Wool", countLevel); return currentName;
|
||||
case ITEM_STRING: sprintf(currentName,"%d String", countLevel); return currentName;
|
||||
case ITEM_PORK_RAW: sprintf(currentName,"%d Raw Pork", countLevel); return currentName;
|
||||
case ITEM_PORK_COOKED: sprintf(currentName,"%d Cooked Pork", countLevel); return currentName;
|
||||
case ITEM_BEEF_RAW: sprintf(currentName,"%d Raw Beef", countLevel); return currentName;
|
||||
case ITEM_BEEF_COOKED: sprintf(currentName,"%d Steak", countLevel); return currentName;
|
||||
case ITEM_LEATHER: sprintf(currentName,"%d Leather", countLevel); return currentName;
|
||||
case ITEM_ARROW_WOOD: sprintf(currentName,"%d Wood Arrow", countLevel); return currentName;
|
||||
case ITEM_ARROW_STONE: sprintf(currentName,"%d Rock Arrow", countLevel); return currentName;
|
||||
case ITEM_ARROW_IRON: sprintf(currentName,"%d Iron Arrow", countLevel); return currentName;
|
||||
case ITEM_ARROW_GOLD: sprintf(currentName,"%d Gold Arrow", countLevel); return currentName;
|
||||
case ITEM_ARROW_GEM: sprintf(currentName,"%d Gem Arrow", countLevel); return currentName;
|
||||
case ITEM_BONE: sprintf(currentName,"%d Bone", countLevel); return currentName;
|
||||
case ITEM_DUNGEON_KEY: sprintf(currentName,"%d Dungeon Key", countLevel); return currentName;
|
||||
case ITEM_WIZARD_SUMMON: sprintf(currentName,"%d Wizard Summon", countLevel); return currentName;
|
||||
case TOOL_BUCKET:
|
||||
switch(countLevel){
|
||||
case 1: return "Water Bucket";
|
||||
case 2: return "Lava Bucket";
|
||||
default: return "Empty Bucket";
|
||||
}
|
||||
case TOOL_BOW: return "Bow";
|
||||
default: return ""; // null
|
||||
}
|
||||
}
|
||||
|
@ -238,12 +262,36 @@ char* getBasicItemName(int itemID, int countLevel){
|
|||
case ITEM_GLASS: return "Glass";
|
||||
case ITEM_GEM: return "Gem";
|
||||
case ITEM_SLIME: return "Slime";
|
||||
|
||||
case ITEM_LOOM: return "Loom";
|
||||
case ITEM_ENCHANTER: return "Enchanter";
|
||||
case ITEM_WALL_WOOD: return "Wood Wall";
|
||||
case ITEM_WALL_STONE: return "Stone Wall";
|
||||
case ITEM_WALL_IRON: return "Iron Wall";
|
||||
case ITEM_WALL_GOLD: return "Gold Wall";
|
||||
case ITEM_WALL_GEM: return "Gem Wall";
|
||||
case ITEM_WOOL: return "Wool";
|
||||
case ITEM_STRING: return "String";
|
||||
case ITEM_PORK_RAW: return "Raw Pork";
|
||||
case ITEM_PORK_COOKED: return "Cooked Pork";
|
||||
case ITEM_BEEF_RAW: return "Raw Beef";
|
||||
case ITEM_BEEF_COOKED: return "Steak";
|
||||
case ITEM_LEATHER: return "Leather";
|
||||
case ITEM_ARROW_WOOD: return "Wood Arrow";
|
||||
case ITEM_ARROW_STONE: return "Rock Arrow";
|
||||
case ITEM_ARROW_IRON: return "Iron Arrow";
|
||||
case ITEM_ARROW_GOLD: return "Gold Arrow";
|
||||
case ITEM_ARROW_GEM: return "Gem Arrow";
|
||||
case ITEM_BONE: return "Bone";
|
||||
case ITEM_DUNGEON_KEY: return "Dungeon Key";
|
||||
case ITEM_WIZARD_SUMMON: return "Wizard Summon";
|
||||
case TOOL_BUCKET:
|
||||
switch(countLevel){
|
||||
case 1: return "Water Bucket";
|
||||
case 2: return "Lava Bucket";
|
||||
default: return "Empty Bucket";
|
||||
}
|
||||
case TOOL_BOW: return "Bow";
|
||||
default: return ""; // null
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue