mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-25 09:31:30 +00:00
A new powerful microwave code allows completely new recipes. All cooked food all have transferred in all the reagents which ingredients had (except of nutriments). A new neat food sprites from Farart. New/changed recipes for cooking with microwave: - Berry Pie was replaced with Berry Clafoutis with new sprite. Recipe: 2 flour, 1 egg, 2 berries (not berryjuice); - Fortune cookies: 1 flour, 1 egg, piece of paper with prophecy; - Meat stake: 1 unit of salt, 1 unit of black pepper, 1 slab of meat; - Pizza "Margherita": 2 flour, 4 wedges of cheese, 1 tomato; - Meat Pizza: 2 flour, 2 slabs of meat, 1 wedge of cheese, 1 tomato; - Mushroom Pizza: 2 flour, 5 any mushrooms; - Vegetable Pizza: 2 flour, 1 eggplant, 1 carrot, 1 corn, 1 tomato; - Spacy Liberty Duff: 10 units of water, 5 units of vodka, 3 Liberty Caps; - Amanita Jelly: 5 units of water, 10 units of vodka, 3 Amanitas; - Meatball Soup: 20 units of water, 1 meatball (aka faggot), 1 carrot, 1 potato; - Vegetable Soup: 20 units of water, 1 carrot, 1 corn, 1 eggplant, 1 potato; - Meatball Soup: 20 units of water, 1 meatball (aka faggot), 1 carrot, 1 potato; - Nettle Soup: 20 units of water, 1 nettle, 1 egg, 1 potato; - Hot Chili stew: 1 slab of meat, 1 chili pepper, 1 tomato; - Cold Chili stew: 1 slab of meat, 1 ice pepper, 1 tomato; Other bugfixes: Fixed items showing under vendomats/microwaves. Activated item_state for anesthetic tank. Runes are under tables and doors now. Fixed runtime errors caused by some reagents. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1440 316c924e-a436-60f5-8080-3fe189b3f50e
123 lines
2.4 KiB
Plaintext
123 lines
2.4 KiB
Plaintext
/proc/parse_zone(zone)
|
|
if(zone == "r_hand") return "right hand"
|
|
else if (zone == "l_hand") return "left hand"
|
|
else if (zone == "l_arm") return "left arm"
|
|
else if (zone == "r_arm") return "right arm"
|
|
else if (zone == "l_leg") return "left leg"
|
|
else if (zone == "r_leg") return "right leg"
|
|
else if (zone == "l_foot") return "left foot"
|
|
else if (zone == "r_foot") return "right foot"
|
|
else return zone
|
|
|
|
/proc/text2dir(direction)
|
|
switch(uppertext(direction))
|
|
if("NORTH")
|
|
return 1
|
|
if("SOUTH")
|
|
return 2
|
|
if("EAST")
|
|
return 4
|
|
if("WEST")
|
|
return 8
|
|
if("NORTHEAST")
|
|
return 5
|
|
if("NORTHWEST")
|
|
return 9
|
|
if("SOUTHEAST")
|
|
return 6
|
|
if("SOUTHWEST")
|
|
return 10
|
|
else
|
|
return
|
|
|
|
/proc/get_turf(turf/location as turf)
|
|
while (location)
|
|
if (istype(location, /turf))
|
|
return location
|
|
|
|
location = location.loc
|
|
return null
|
|
|
|
/proc/get_turf_or_move(turf/location as turf)
|
|
location = get_turf(location)
|
|
return location
|
|
|
|
|
|
|
|
/proc/dir2text(direction)
|
|
switch(direction)
|
|
if(1.0)
|
|
return "north"
|
|
if(2.0)
|
|
return "south"
|
|
if(4.0)
|
|
return "east"
|
|
if(8.0)
|
|
return "west"
|
|
if(5.0)
|
|
return "northeast"
|
|
if(6.0)
|
|
return "southeast"
|
|
if(9.0)
|
|
return "northwest"
|
|
if(10.0)
|
|
return "southwest"
|
|
else
|
|
return
|
|
|
|
/proc/is_type_in_list(var/atom/A, var/list/L)
|
|
for(var/type in L)
|
|
if(istype(A, type))
|
|
return 1
|
|
return 0
|
|
|
|
//Quick type checks for some tools
|
|
var/global/list/common_tools = list(
|
|
/obj/item/weapon/cable_coil,
|
|
/obj/item/weapon/wrench,
|
|
/obj/item/weapon/weldingtool,
|
|
/obj/item/weapon/screwdriver,
|
|
/obj/item/weapon/wirecutters,
|
|
/obj/item/device/multitool,
|
|
/obj/item/weapon/crowbar)
|
|
|
|
/proc/istool(O)
|
|
if(O && is_type_in_list(O, common_tools))
|
|
return 1
|
|
return 0
|
|
|
|
/proc/iswrench(O)
|
|
if(istype(O, /obj/item/weapon/wrench))
|
|
return 1
|
|
return 0
|
|
|
|
/proc/iswelder(O)
|
|
if(istype(O, /obj/item/weapon/weldingtool))
|
|
return 1
|
|
return 0
|
|
|
|
/proc/iscoil(O)
|
|
if(istype(O, /obj/item/weapon/cable_coil))
|
|
return 1
|
|
return 0
|
|
|
|
/proc/iswirecutter(O)
|
|
if(istype(O, /obj/item/weapon/wirecutters))
|
|
return 1
|
|
return 0
|
|
|
|
/proc/isscrewdriver(O)
|
|
if(istype(O, /obj/item/weapon/screwdriver))
|
|
return 1
|
|
return 0
|
|
|
|
/proc/ismultitool(O)
|
|
if(istype(O, /obj/item/device/multitool))
|
|
return 1
|
|
return 0
|
|
|
|
/proc/iscrowbar(O)
|
|
if(istype(O, /obj/item/weapon/crowbar))
|
|
return 1
|
|
return 0
|