Refactoring and rewording

Moves recipe list generation into its own proc and out of New()
- Makes lists only generate/update if not present, to save a small bit
of processing on the loop

Rewords the messages when adding items to mixing bowls and kitchen
machines to sound slightly better
> Also refactored messages which were split between multiple lines in
the code to be on one line and removed an extra space in one message
This commit is contained in:
FalseIncarnate
2018-04-27 23:12:27 -04:00
parent b24b46dd21
commit ba0b89c93c
2 changed files with 28 additions and 42 deletions
+2 -2
View File
@@ -34,7 +34,7 @@
if(S.amount > 1)
new S.type (src)
S.use(1)
user.visible_message("<span class='notice'>[user] has added one of [S] to [src].</span>", "<span class='notice'>You add one of [S] to [src].</span>")
user.visible_message("<span class='notice'>[user] adds one of [S] to [src].</span>", "<span class='notice'>You add one of [S] to [src].</span>")
else
return add_item(S, user)
else
@@ -56,7 +56,7 @@
//return 0
else
I.forceMove(src)
user.visible_message("<span class='notice'>[user] has added [I] to [src].</span>", "<span class='notice'>You add [I] to [src].</span>")
user.visible_message("<span class='notice'>[user] adds [I] to [src].</span>", "<span class='notice'>You add [I] to [src].</span>")
/obj/item/mixing_bowl/attack_self(mob/user)
var/dat = ""