Colorize some item tooltips
This commit is contained in:
parent
7ee2340f5c
commit
6b529e1204
10 changed files with 14 additions and 13 deletions
|
@ -4,7 +4,7 @@ local S = minetest.get_translator("mcl_mobitems")
|
|||
|
||||
minetest.register_craftitem("mcl_mobitems:rotten_flesh", {
|
||||
description = S("Rotten Flesh"),
|
||||
_tt_help = S("80% chance of food poisoning"),
|
||||
_tt_help = minetest.colorize("#FFFF00", S("80% chance of food poisoning")),
|
||||
_doc_items_longdesc = S("Yuck! This piece of flesh clearly has seen better days. If you're really desperate, you can eat it to restore a few hunger points, but there's a 80% chance it causes food poisoning, which increases your hunger for a while."),
|
||||
inventory_image = "mcl_mobitems_rotten_flesh.png",
|
||||
wield_image = "mcl_mobitems_rotten_flesh.png",
|
||||
|
@ -65,7 +65,7 @@ minetest.register_craftitem("mcl_mobitems:cooked_beef", {
|
|||
|
||||
minetest.register_craftitem("mcl_mobitems:chicken", {
|
||||
description = S("Raw Chicken"),
|
||||
_tt_help = S("30% chance of food poisoning"),
|
||||
_tt_help = minetest.colorize("#FFFF00", S("30% chance of food poisoning")),
|
||||
_doc_items_longdesc = S("Raw chicken is a food item which is not safe to consume. You can eat it to restore a few hunger points, but there's a 30% chance to suffer from food poisoning, which increases your hunger rate for a while. Cooking raw chicken will make it safe to eat and increases its nutritional value."),
|
||||
inventory_image = "mcl_mobitems_chicken_raw.png",
|
||||
wield_image = "mcl_mobitems_chicken_raw.png",
|
||||
|
@ -148,7 +148,7 @@ end
|
|||
-- TODO: Clear *all* status effects
|
||||
minetest.register_craftitem("mcl_mobitems:milk_bucket", {
|
||||
description = S("Milk"),
|
||||
_tt_help = S("Cures poison"),
|
||||
_tt_help = minetest.colorize("#00FF00", S("Cures poison")),
|
||||
_doc_items_longdesc = S("Milk is very refreshing and can be obtained by using a bucket on a cow. Drinking it will cure all forms of poisoning, but restores no hunger points."),
|
||||
_doc_items_usagehelp = "Rightclick to drink the milk.",
|
||||
inventory_image = "mcl_mobitems_bucket_milk.png",
|
||||
|
@ -162,7 +162,7 @@ minetest.register_craftitem("mcl_mobitems:milk_bucket", {
|
|||
|
||||
minetest.register_craftitem("mcl_mobitems:spider_eye", {
|
||||
description = S("Spider Eye"),
|
||||
_tt_help = S("Poisonous"),
|
||||
_tt_help = minetest.colorize("#FFFF00", S("Poisonous")),
|
||||
_doc_items_longdesc = S("Spider eyes are used mainly in crafting. If you're really desperate, you can eat a spider eye, but it will poison you briefly."),
|
||||
inventory_image = "mcl_mobitems_spider_eye.png",
|
||||
wield_image = "mcl_mobitems_spider_eye.png",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue