Abstract Eating of Ore to Fix Unintentional Prompt

Using the verb with nothing in your hand brings up a prompt to select an object due to the argument in the verb.

This resolves the issue, instead just showing the "nothing in your hand" message as intended.
This commit is contained in:
KasparoVy
2020-04-03 23:14:42 -04:00
parent 915b82752a
commit 04378e159e
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -128,7 +128,7 @@
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(H.species.eat_ore == 1)
H.eat_ore(src)
H.handle_eat_ore(src)
return
..()
//VOREStation Add End
+4 -1
View File
@@ -689,11 +689,14 @@
to_chat(src, "<span class='notice'>This item is not appropriate for ethical consumption.</span>")
return
/mob/living/proc/eat_ore(var/obj/item/snack)
/mob/living/proc/eat_ore() //Actual eating abstracted so the user isn't given a prompt due to an argument in this verb.
set name = "Eat Ore"
set category = "Abilities"
set desc = "Consume held ore and gems. Snack time!"
handle_eat_ore()
/mob/living/proc/handle_eat_ore(obj/item/snack)
if(!vore_selected)
to_chat(src, "<span class='warning'>You either don't have a belly selected, or don't have a belly!</span>")
return