summaryrefslogtreecommitdiff
path: root/src/content_inventory.cpp
diff options
context:
space:
mode:
authorNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-20 22:04:24 +0200
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-20 22:05:57 +0200
commit8129d16dd3f7e5575c444b4792e667a1e3df98e2 (patch)
tree1c3e56bba8c197275bc63b97d8a18620a3523560 /src/content_inventory.cpp
parent4cbdf136fc70016f2721db311bda5ade7a3cdab8 (diff)
downloadminetest-8129d16dd3f7e5575c444b4792e667a1e3df98e2.tar.gz
minetest-8129d16dd3f7e5575c444b4792e667a1e3df98e2.tar.bz2
minetest-8129d16dd3f7e5575c444b4792e667a1e3df98e2.zip
+ fireflies
Diffstat (limited to 'src/content_inventory.cpp')
-rw-r--r--src/content_inventory.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/content_inventory.cpp b/src/content_inventory.cpp
index 7d995cb5f..1068defb5 100644
--- a/src/content_inventory.cpp
+++ b/src/content_inventory.cpp
@@ -65,6 +65,8 @@ std::string item_craft_get_image_name(const std::string &subname)
return "clay_brick.png";
else if(subname == "rat")
return "rat.png";
+ else if(subname == "firefly")
+ return "firefly.png";
else
return "cloud.png"; // just something
}
@@ -77,13 +79,18 @@ ServerActiveObject* item_craft_create_object(const std::string &subname,
ServerActiveObject *obj = new RatSAO(env, id, pos);
return obj;
}
+ else if(subname == "firefly")
+ {
+ ServerActiveObject *obj = new FireflySAO(env, id, pos);
+ return obj;
+ }
return NULL;
}
s16 item_craft_get_drop_count(const std::string &subname)
{
- if(subname == "rat")
+ if(subname == "rat" || subname == "firefly")
return 1;
return -1;