diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-22 10:48:40 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-22 10:48:40 +0300 |
commit | bbe47f845b887899065f6daca4cd16060d80553f (patch) | |
tree | d5ae67a193261da51315a9b00f3a2ce104b44e74 /src/server.cpp | |
parent | b36e5c05088aca7b500bf5fe355f4b3c205a59a3 (diff) | |
download | minetest-bbe47f845b887899065f6daca4cd16060d80553f.tar.gz minetest-bbe47f845b887899065f6daca4cd16060d80553f.tar.bz2 minetest-bbe47f845b887899065f6daca4cd16060d80553f.zip |
Updated to-do list and added the give_initial_stuff setting for testing
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/src/server.cpp b/src/server.cpp index ee7a035e6..89359cd5e 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -4082,13 +4082,33 @@ Player *Server::emergePlayer(const char *name, const char *password, { setCreativeInventory(player); } - else + else if(g_settings.getBool("give_initial_stuff")) { - /*{ - InventoryItem *item = new ToolItem("WPick", 32000); + { + InventoryItem *item = new ToolItem("SteelPick", 0); void* r = player->inventory.addItem("main", item); assert(r == NULL); - }*/ + } + { + InventoryItem *item = new MaterialItem(CONTENT_TORCH, 99); + void* r = player->inventory.addItem("main", item); + assert(r == NULL); + } + { + InventoryItem *item = new ToolItem("SteelAxe", 0); + void* r = player->inventory.addItem("main", item); + assert(r == NULL); + } + { + InventoryItem *item = new ToolItem("SteelShovel", 0); + void* r = player->inventory.addItem("main", item); + assert(r == NULL); + } + { + InventoryItem *item = new MaterialItem(CONTENT_COBBLE, 99); + void* r = player->inventory.addItem("main", item); + assert(r == NULL); + } /*{ InventoryItem *item = new MaterialItem(CONTENT_MESE, 6); void* r = player->inventory.addItem("main", item); @@ -4119,13 +4139,7 @@ Player *Server::emergePlayer(const char *name, const char *password, void* r = player->inventory.addItem("main", item); assert(r == NULL); }*/ - /*// Give some lights - { - InventoryItem *item = new MaterialItem(CONTENT_TORCH, 999); - bool r = player->inventory.addItem("main", item); - assert(r == true); - } - // and some signs + /*// and some signs for(u16 i=0; i<4; i++) { InventoryItem *item = new MapBlockObjectItem("Sign Example text"); |