Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Feature] Drinkable Pizza
#1
I got 3 hours of sleep last night.

It's 1:23AM.

Let's drink some fuckin pizza

[Image: 68a78488fe.png]

This patch lets you shove pizza slices (not whole pizzas) into glasses and beakers and stuff like a gross slob and then fucking drink it (what the f uck are you doing)

To Add:



Add this bit of code to the base pizza code on line 71 in code\obj\item\food\snacks.dm

http://puu.sh/rXaPj/5e259c42b2.txt
Code:
    afterattack(atom/target, mob/user, flag) // copied from the propuffs
        if(src.sliced)
            if (istype(target, /obj/item/reagent_containers/))
                user.visible_message("<span style=\"color:blue\"><b>[user]</b> smooshes the [src] into the [target] like a freak.</span>",\
                "<span style=\"color:blue\">You shove the [src] into the [target] like a disgusting monster.</span>")
                src.reagents.add_reagent("pizza", 10)
                src.reagents.trans_to(target, 10) //kinda hacky but it works and i had trouble with more elegant solutions
                qdel (src)
                return
        else
            return ..()



Then add the pizza reagent code in on line 35 (or similar) in code\datums\chemistry\Reagents-FoodDrink.dm

http://puu.sh/rXbbS/3e30df62fb.txt
Code:
        fooddrink/pizza
            name = "pizza"
            id = "pizza"
            description = "What the actual fuck is this?"
            reagent_state = LIQUID
            fluid_r = 200
            fluid_g = 100
            fluid_b = 0
            transparency = 255

            on_mob_life(var/mob/M)
                if(!M) M = holder.my_atom
                M.reagents.add_reagent("juice_tomato",1)
                M.reagents.add_reagent("pepperoni",1)
                M.reagents.add_reagent("cheese",1)
                M.reagents.add_reagent("bread",1)
                M.reagents.add_reagent("badgrease",1)
                ..(M)
                return





Also, unrelated, but here are some melty pizza sprites I made that might contain the liquid pizza reagent. I don't know how you'd end up getting these, but I made the sprites anyways:

http://puu.sh/rXb4w/3df1759a9a.dmi
Reply


Messages In This Thread
[Feature] Drinkable Pizza - by UrsulaMejor - 10-27-2016, 12:34 AM
RE: [Feature] Drinkable Pizza - by TheNewTeddy - 10-27-2016, 12:36 AM
RE: [Feature] Drinkable Pizza - by NateTheSquid - 10-27-2016, 12:38 AM
RE: [Feature] Drinkable Pizza - by Grumpchkin - 10-27-2016, 12:36 AM
RE: [Feature] Drinkable Pizza - by Nnystyxx - 10-27-2016, 12:45 AM
RE: [Feature] Drinkable Pizza - by somepotato - 10-27-2016, 03:12 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)