Merge branch 'master' of https://github.com/PolarisSS13/Polaris into aro-sync01222018

# Conflicts:
#	code/modules/mob/mob.dm - Whitespace? No real conflict.
#	code/modules/mob/mob_planes.dm - Comment conflict, was a late port to Polaris.
This commit is contained in:
Arokha Sieyes
2018-01-22 12:10:19 -05:00
19 changed files with 246 additions and 30 deletions
@@ -13,7 +13,6 @@
path = /obj/item/device/communicator
cost = 0
display_name = "communicator watch"
/datum/gear/utility/communicator/New()
..()
var/list/communicators = list()
+3
View File
@@ -420,6 +420,9 @@
/obj/item/weapon/reagent_containers/food/drinks/bottle/orangejuice
price_tag = 6
/obj/item/weapon/reagent_containers/food/drinks/bottle/applejuice
price_tag = 6
/obj/item/weapon/reagent_containers/food/drinks/bottle/cream
price_tag = 6
+33 -6
View File
@@ -387,6 +387,31 @@ I said no!
items = list(/obj/item/weapon/reagent_containers/food/snacks/cheesewedge)
result = /obj/item/weapon/reagent_containers/food/snacks/loadedbakedpotato
/datum/recipe/mashedpotato
fruit = list("potato" = 1)
result = /obj/item/weapon/reagent_containers/food/snacks/mashedpotato
/datum/recipe/bangersandmash
items = list(
/obj/item/weapon/reagent_containers/food/snacks/mashedpotato,
/obj/item/weapon/reagent_containers/food/snacks/sausage,
)
result = /obj/item/weapon/reagent_containers/food/snacks/bangersandmash
/datum/recipe/cheesymash
items = list(
/obj/item/weapon/reagent_containers/food/snacks/mashedpotato,
/obj/item/weapon/reagent_containers/food/snacks/cheesewedge,
)
result = /obj/item/weapon/reagent_containers/food/snacks/cheesymash
/datum/recipe/blackpudding
reagents = list("blood" = 5)
items = list(
/obj/item/weapon/reagent_containers/food/snacks/sausage,
)
result = /obj/item/weapon/reagent_containers/food/snacks/blackpudding
/datum/recipe/cheesyfries
items = list(
/obj/item/weapon/reagent_containers/food/snacks/fries,
@@ -993,7 +1018,8 @@ I said no!
result = /obj/item/weapon/reagent_containers/food/snacks/sliceable/plaincake
/datum/recipe/cake/carrot
fruit = list("carrot" = 3)
fruit = list("carrot" = 1)
reagents = list("milk" = 5, "flour" = 15, "egg" = 9,"sugar" = 5)
result = /obj/item/weapon/reagent_containers/food/snacks/sliceable/carrotcake
/datum/recipe/cake/cheese
@@ -1005,22 +1031,22 @@ I said no!
/datum/recipe/cake/orange
fruit = list("orange" = 1)
reagents = list("milk" = 5, "flour" = 15, "egg" = 9, "orangejuice" = 3, "sugar" = 5)
reagents = list("milk" = 5, "flour" = 15, "egg" = 9,"sugar" = 5)
result = /obj/item/weapon/reagent_containers/food/snacks/sliceable/orangecake
/datum/recipe/cake/lime
fruit = list("lime" = 1)
reagents = list("milk" = 5, "flour" = 15, "egg" = 9, "limejuice" = 3, "sugar" = 5)
reagents = list("milk" = 5, "flour" = 15, "egg" = 9,"sugar" = 5)
result = /obj/item/weapon/reagent_containers/food/snacks/sliceable/limecake
/datum/recipe/cake/lemon
fruit = list("lemon" = 1)
reagents = list("milk" = 5, "flour" = 15, "egg" = 9, "lemonjuice" = 3, "sugar" = 5)
reagents = list("milk" = 5, "flour" = 15, "egg" = 9,"sugar" = 5)
result = /obj/item/weapon/reagent_containers/food/snacks/sliceable/lemoncake
/datum/recipe/cake/chocolate
items = list(/obj/item/weapon/reagent_containers/food/snacks/chocolatebar)
reagents = list("milk" = 5, "flour" = 15, "egg" = 9, "coco" = 4, "sugar" = 5)
reagents = list("milk" = 5, "flour" = 15, "egg" = 9,"sugar" = 5)
result = /obj/item/weapon/reagent_containers/food/snacks/sliceable/chocolatecake
/datum/recipe/cake/birthday
@@ -1028,7 +1054,8 @@ I said no!
result = /obj/item/weapon/reagent_containers/food/snacks/sliceable/birthdaycake
/datum/recipe/cake/apple
fruit = list("apple" = 2)
fruit = list("apple" = 1)
reagents = list("milk" = 5, "flour" = 15, "egg" = 9,"sugar" = 5)
result = /obj/item/weapon/reagent_containers/food/snacks/sliceable/applecake
/datum/recipe/cake/brain
+1 -1
View File
@@ -37,7 +37,7 @@
/datum/plane_holder/Destroy()
my_mob = null
qdel_null_list(plane_masters) //Goodbye my children, be free //VOREStation Edit - Need to qdel these now
qdel_null_list(plane_masters) //Goodbye my children, be free
return ..()
/datum/plane_holder/proc/set_vis(var/which = null, var/state = FALSE)
@@ -1608,6 +1608,18 @@
glass_name = "wine"
glass_desc = "A very classy looking drink."
/datum/reagent/ethanol/cider
name = "Cider"
id = "cider"
description = "Hard? Soft? No-one knows but it'll get you drunk."
taste_description = "tartness"
color = "#CE9C00" // rgb: 206, 156, 0
strength = 10
glass_name = "cider"
glass_desc = "The second most Irish drink."
// Cocktails
+10 -1
View File
@@ -1336,10 +1336,19 @@
name = "Vodka"
id = "vodka"
result = "vodka"
required_reagents = list("potato" = 10)
required_reagents = list("potatojuice" = 10)
catalysts = list("enzyme" = 5)
result_amount = 10
/datum/chemical_reaction/drinks/cider
name = "Cider"
id = "cider"
result = "cider"
required_reagents = list("applejuice" = 10)
catalysts = list("enzyme" = 5)
result_amount = 10
/datum/chemical_reaction/drinks/sake
name = "Sake"
id = "sake"
@@ -431,6 +431,18 @@
..()
reagents.add_reagent("orangejuice", 100)
/obj/item/weapon/reagent_containers/food/drinks/bottle/applejuice
name = "Apple Juice"
desc = "Squeezed, pressed and ground to perfection!"
icon_state = "applejuice"
item_state = "carton"
center_of_mass = list("x"=16, "y"=7)
isGlass = 0
/obj/item/weapon/reagent_containers/food/drinks/bottle/applejuice/New()
..()
reagents.add_reagent("applejuice", 100)
/obj/item/weapon/reagent_containers/food/drinks/bottle/milk
name = "Large Milk Carton"
desc = "It's milk. This carton's large enough to serve your biggest milk drinkers."
@@ -1380,6 +1380,63 @@
..()
bitesize = 2
/obj/item/weapon/reagent_containers/food/snacks/mashedpotato
name = "Mashed Potato"
desc = "Pillowy mounds of mashed potato."
icon_state = "mashedpotato"
trash = /obj/item/trash/plate
filling_color = "#EDDD00"
center_of_mass = list("x"=16, "y"=11)
nutriment_amt = 4
nutriment_desc = list("fluffy mashed potatoes" = 4)
/obj/item/weapon/reagent_containers/food/snacks/mashedpotato/New()
..()
bitesize = 2
/obj/item/weapon/reagent_containers/food/snacks/bangersandmash
name = "Bangers and Mash"
desc = "An English treat."
icon_state = "bangersandmash"
trash = /obj/item/trash/plate
filling_color = "#EDDD00"
center_of_mass = list("x"=16, "y"=11)
nutriment_amt = 4
nutriment_desc = list("fluffy potato" = 3, "sausage" = 2)
/obj/item/weapon/reagent_containers/food/snacks/bangersandmash/New()
..()
reagents.add_reagent("protein", 3)
bitesize = 4
/obj/item/weapon/reagent_containers/food/snacks/cheesymash
name = "Cheesy Mashed Potato"
desc = "The only thing that could make mash better."
icon_state = "cheesymash"
trash = /obj/item/trash/plate
filling_color = "#EDDD00"
center_of_mass = list("x"=16, "y"=11)
nutriment_amt = 4
nutriment_desc = list("cheesy potato" = 4)
/obj/item/weapon/reagent_containers/food/snacks/cheesymash/New()
..()
reagents.add_reagent("protein", 3)
bitesize = 2
/obj/item/weapon/reagent_containers/food/snacks/blackpudding
name = "Black Pudding"
desc = "This doesn't seem like a pudding at all."
icon_state = "blackpudding"
filling_color = "#FF0000"
center_of_mass = list("x"=16, "y"=7)
/obj/item/weapon/reagent_containers/food/snacks/blackpudding/New()
..()
reagents.add_reagent("protein", 2)
reagents.add_reagent("blood", 5)
bitesize = 3
/obj/item/weapon/reagent_containers/food/snacks/soydope
name = "Soy Dope"
desc = "Dope from a soy."
+47 -1
View File
@@ -56,9 +56,55 @@
affected.take_damage(5, 0)
///////////////////////////////////////////////////////////////
// Necrosis Surgery
// Necrosis Surgery Step 1
///////////////////////////////////////////////////////////////
/datum/surgery_step/fix_dead_tissue //Debridement
priority = 2
allowed_tools = list(
/obj/item/weapon/surgical/scalpel = 100, \
/obj/item/weapon/material/knife = 75, \
/obj/item/weapon/material/shard = 50, \
)
can_infect = 1
blood_level = 1
min_duration = 110
max_duration = 160
/datum/surgery_step/fix_dead_tissue/can_use(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
if(!hasorgans(target))
return 0
if (target_zone == O_MOUTH || target_zone == O_EYES)
return 0
var/obj/item/organ/external/affected = target.get_organ(target_zone)
return affected && affected.open >= 2 && (affected.status & ORGAN_DEAD)
/datum/surgery_step/fix_dead_tissue/begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
var/obj/item/organ/external/affected = target.get_organ(target_zone)
user.visible_message("[user] starts cutting away necrotic tissue in [target]'s [affected.name] with \the [tool]." , \
"You start cutting away necrotic tissue in [target]'s [affected.name] with \the [tool].")
target.custom_pain("The pain in [affected.name] is unbearable!", 100)
..()
/datum/surgery_step/fix_dead_tissue/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
var/obj/item/organ/external/affected = target.get_organ(target_zone)
user.visible_message("<font color='blue'>[user] has cut away necrotic tissue in [target]'s [affected.name] with \the [tool].</font>", \
"<font color='blue'>You have cut away necrotic tissue in [target]'s [affected.name] with \the [tool].</font>")
affected.open = 3
/datum/surgery_step/fix_dead_tissue/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
var/obj/item/organ/external/affected = target.get_organ(target_zone)
user.visible_message("<font color='red'>[user]'s hand slips, slicing an artery inside [target]'s [affected.name] with \the [tool]!</font>", \
"<font color='red'>Your hand slips, slicing an artery inside [target]'s [affected.name] with \the [tool]!</font>")
affected.createwound(CUT, 20, 1)
///////////////////////////////////////////////////////////////
// Necrosis Surgery Step 2
///////////////////////////////////////////////////////////////
/datum/surgery_step/treat_necrosis
priority = 2
allowed_tools = list(
+2 -2
View File
@@ -128,9 +128,9 @@
// Not staying still fails you too.
if(success)
var/calc_duration = rand(S.min_duration, S.max_duration)
if(!do_mob(user, M, calc_duration * toolspeed))
if(!do_mob(user, M, calc_duration * toolspeed, zone))
success = FALSE
to_chat(user, "<span class='warning'>You must remain close to your patient to conduct surgery.</span>")
to_chat(user, "<span class='warning'>You must remain close to and keep focused on your patient to conduct surgery.</span>")
if(success)
S.end_step(user, M, zone, src)