summaryrefslogtreecommitdiff
path: root/src/content_craft.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-26 00:55:50 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:52 +0200
commit77337271fc7ab3b767c6832424dc7d82cebd33f4 (patch)
tree0098c2a3467d0c6ee894f3665d49ba7ca888cbf4 /src/content_craft.cpp
parentc1479a273266709d6d0775c690dce31a7a430aa5 (diff)
downloadminetest-77337271fc7ab3b767c6832424dc7d82cebd33f4.tar.gz
minetest-77337271fc7ab3b767c6832424dc7d82cebd33f4.tar.bz2
minetest-77337271fc7ab3b767c6832424dc7d82cebd33f4.zip
Remove give_initial_stuff
Diffstat (limited to 'src/content_craft.cpp')
-rw-r--r--src/content_craft.cpp73
1 files changed, 0 insertions, 73 deletions
diff --git a/src/content_craft.cpp b/src/content_craft.cpp
index 6a5052eea..c34e72a8e 100644
--- a/src/content_craft.cpp
+++ b/src/content_craft.cpp
@@ -124,77 +124,4 @@ void craft_set_creative_inventory(Player *player, IGameDef *gamedef)
}*/
}
-void craft_give_initial_stuff(Player *player, IGameDef *gamedef)
-{
- INodeDefManager *ndef = gamedef->ndef();
-
- {
- InventoryItem *item = new ToolItem(gamedef, "SteelPick", 0);
- void* r = player->inventory.addItem("main", item);
- assert(r == NULL);
- }
- {
- InventoryItem *item = new MaterialItem(gamedef, LEGN(ndef, "CONTENT_TORCH"), 99);
- void* r = player->inventory.addItem("main", item);
- assert(r == NULL);
- }
- {
- InventoryItem *item = new ToolItem(gamedef, "SteelAxe", 0);
- void* r = player->inventory.addItem("main", item);
- assert(r == NULL);
- }
- {
- InventoryItem *item = new ToolItem(gamedef, "SteelShovel", 0);
- void* r = player->inventory.addItem("main", item);
- assert(r == NULL);
- }
- {
- InventoryItem *item = new MaterialItem(gamedef, LEGN(ndef, "CONTENT_COBBLE"), 99);
- void* r = player->inventory.addItem("main", item);
- assert(r == NULL);
- }
- /*{
- InventoryItem *item = new MaterialItem(gamedef, LEGN(ndef, "CONTENT_MESE"), 6);
- void* r = player->inventory.addItem("main", item);
- assert(r == NULL);
- }
- {
- InventoryItem *item = new MaterialItem(gamedef, LEGN(ndef, "CONTENT_COALSTONE"), 6);
- void* r = player->inventory.addItem("main", item);
- assert(r == NULL);
- }
- {
- InventoryItem *item = new MaterialItem(gamedef, LEGN(ndef, "CONTENT_WOOD"), 6);
- void* r = player->inventory.addItem("main", item);
- assert(r == NULL);
- }
- {
- InventoryItem *item = new CraftItem(gamedef, "Stick", 4);
- void* r = player->inventory.addItem("main", item);
- assert(r == NULL);
- }
- {
- InventoryItem *item = new ToolItem(gamedef, "WPick", 32000);
- void* r = player->inventory.addItem("main", item);
- assert(r == NULL);
- }
- {
- InventoryItem *item = new ToolItem(gamedef, "STPick", 32000);
- void* r = player->inventory.addItem("main", item);
- assert(r == NULL);
- }*/
- /*// and some signs
- for(u16 i=0; i<4; i++)
- {
- InventoryItem *item = new MapBlockObjectItem(gamedef, "Sign Example text");
- bool r = player->inventory.addItem("main", item);
- assert(r == true);
- }*/
- /*// Give some other stuff
- {
- InventoryItem *item = new MaterialItem(gamedef, LEGN(ndef, "CONTENT_TREE"), 999);
- bool r = player->inventory.addItem("main", item);
- assert(r == true);
- }*/
-}