mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Rats are now eatable. Also made their selection box move smoothly.
This commit is contained in:
parent
4556c212db
commit
d62ae0e18b
10 changed files with 140 additions and 57 deletions
|
@ -122,3 +122,18 @@ InventoryItem* item_craft_create_cook_result(const std::string &subname)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
bool item_craft_is_eatable(const std::string &subname)
|
||||
{
|
||||
if(subname == "cooked_rat")
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
s16 item_craft_eat_hp_change(const std::string &subname)
|
||||
{
|
||||
if(subname == "cooked_rat")
|
||||
return 6; // 3 hearts
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue