Skip to content

Commit 8282d00

Browse files
authored
Post "crew L" round tweaks (#887)
* A scrubs * Guh * Fix cause of death * Random wordings * Oops * Lower frostbite rate * plus five lasers * Foodstuffs
1 parent e9f339b commit 8282d00

14 files changed

Lines changed: 35 additions & 22 deletions

File tree

code/__DEFINES/crafting.dm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
#define CRAFT_CHECK_DENSITY (1<<5)
2929
/// If the created atom will gain custom mat datums
3030
#define CRAFT_APPLIES_MATS (1<<6)
31-
/// Crafting passes reagents of components to the finished product
32-
#define CRAFT_TRANSFERS_REAGENTS (1<<7)
31+
/// Any reagent inputs to the craft will be transferred to the finishing product instead of being deleted
32+
/// Note this only handles reagents that are SPECIFICALLY ASKED FOR in the component list, not all reagents in all components
33+
#define CRAFT_TRANSFERS_REAGENT_COMPONENTS (1<<7)
3334
/// Crafting clears all reagents present in the finished product
3435
#define CRAFT_CLEARS_REAGENTS (1<<8)
3536

code/datums/components/crafting/crafting.dm

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,12 @@
260260
if(result.atom_storage && recipe.delete_contents)
261261
for(var/obj/item/thing in result)
262262
qdel(thing)
263+
if(recipe.crafting_flags & CRAFT_CLEARS_REAGENTS)
264+
result.reagents?.clear_reagents()
263265
var/datum/reagents/holder = locate() in parts
264266
if(holder) //transfer reagents from ingredients to result
265-
if(!ispath(recipe.result, /obj/item/reagent_containers) && result.reagents)
266-
if(recipe.crafting_flags & CRAFT_CLEARS_REAGENTS)
267-
result.reagents.clear_reagents()
268-
if(recipe.crafting_flags & CRAFT_TRANSFERS_REAGENTS)
269-
holder.trans_to(result.reagents, holder.total_volume, no_react = TRUE)
267+
if(result.reagents && (recipe.crafting_flags & CRAFT_TRANSFERS_REAGENT_COMPONENTS))
268+
holder.trans_to(result.reagents, holder.total_volume, no_react = TRUE)
270269
parts -= holder
271270
qdel(holder)
272271
result.CheckParts(parts, recipe)

code/datums/wounds/burns.dm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@
444444
damage_multiplier_penalty = 1.1
445445
interaction_efficiency_penalty = 0.9
446446
threshold_penalty = 25
447-
infection_rate = 0.05
447+
infection_rate = 0.01
448448
flesh_damage = 10
449449
treatable_by = list(/obj/item/flashlight/pen/paramedic)
450450

@@ -467,13 +467,13 @@
467467
return
468468
switch(severity)
469469
if(WOUND_SEVERITY_SEVERE)
470-
infection_rate = 0.075
470+
infection_rate = 0.025
471471
damage_multiplier_penalty = 1.2
472472
interaction_efficiency_penalty = 0.6
473473
threshold_penalty = 50
474474
examine_desc = "is turning white"
475475
if(WOUND_SEVERITY_CRITICAL)
476-
infection_rate = 0.1
476+
infection_rate = 0.05
477477
damage_multiplier_penalty = 1.25
478478
interaction_efficiency_penalty = 0.3
479479
threshold_penalty = 75

code/datums/wounds/internal_bleeding.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
if(SPT_PROB(1, seconds_per_tick))
8181
var/datum/blood_type/blood_type = victim.get_blood_type()
8282
if(blood_type)
83-
to_chat(victim, span_notice("You can taste [blood_type.reagent_type::name]."))
83+
to_chat(victim, span_notice("You can taste [LOWER_TEXT(blood_type.reagent_type::name)]."))
8484

8585
switch(limb.body_zone)
8686
if(BODY_ZONE_HEAD)

code/game/objects/items/food/frozen.dm

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,17 @@
107107
drop_sound = 'maplestation_modules/sound/items/drop/papercup.ogg'
108108
pickup_sound = 'maplestation_modules/sound/items/pickup/papercup.ogg'
109109

110+
/obj/item/food/snowcones/CheckParts(list/parts_list, datum/crafting_recipe/current_recipe)
111+
. = ..()
112+
if(isnull(current_recipe))
113+
return
114+
// replaces the ice from the input with water
115+
reagents.remove_reagent(/datum/reagent/consumable/ice, 15)
116+
reagents.add_reagent(/datum/reagent/water, 11)
117+
// then add 1u nutriment for free
118+
reagents.add_reagent(/datum/reagent/consumable/nutriment, 1)
119+
// the juice component will be transferred in from crafting
120+
110121
/obj/item/food/snowcones/lime
111122
name = "lime snowcone"
112123
desc = "Lime syrup drizzled over a snowball in a paper cup."

code/modules/clothing/under/jobs/medical.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090

9191
/obj/item/clothing/under/rank/medical/scrubs
9292
name = "medical scrubs"
93+
gender = PLURAL
9394

9495
/obj/item/clothing/under/rank/medical/scrubs/Initialize(mapload)
9596
. = ..()

code/modules/food_and_drinks/recipes/food_mixtures.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/datum/crafting_recipe/food
22
mass_craftable = TRUE
3-
crafting_flags = CRAFT_TRANSFERS_REAGENTS | CRAFT_CLEARS_REAGENTS
3+
crafting_flags = parent_type::crafting_flags | CRAFT_TRANSFERS_REAGENT_COMPONENTS | CRAFT_CLEARS_REAGENTS
44

55
/datum/crafting_recipe/food/on_craft_completion(mob/user, atom/result)
66
SHOULD_CALL_PARENT(TRUE)

code/modules/food_and_drinks/recipes/tablecraft/recipes_lizard.dm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
)
187187
result = /obj/item/food/rootdough
188188
category = CAT_LIZARD
189-
crafting_flags = CRAFT_CLEARS_REAGENTS
189+
crafting_flags = parent_type::crafting_flags & ~CRAFT_TRANSFERS_REAGENT_COMPONENTS // prevents water from reacting immediately, clearing the dish
190190

191191
/datum/crafting_recipe/food/rootdough2
192192
name = "Rootdough"
@@ -198,7 +198,7 @@
198198
)
199199
result = /obj/item/food/rootdough
200200
category = CAT_LIZARD
201-
crafting_flags = CRAFT_CLEARS_REAGENTS
201+
crafting_flags = parent_type::crafting_flags & ~CRAFT_TRANSFERS_REAGENT_COMPONENTS // prevents water from reacting immediately, clearing the dish
202202

203203
/datum/crafting_recipe/food/snail_nizaya
204204
name = "Desert snail nizaya"

code/modules/food_and_drinks/recipes/tablecraft/recipes_moth.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
)
2828
result = /obj/item/food/toasted_seeds
2929
category = CAT_MOTH
30+
crafting_flags = parent_type::crafting_flags & ~CRAFT_CLEARS_REAGENTS // seeds don't have nutriment
3031

3132
/datum/crafting_recipe/food/engine_fodder
3233
name = "Engine fodder"

code/modules/mob/living/carbon/human/death.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ GLOBAL_LIST_EMPTY(dead_players_during_shift)
7070

7171
switch(probable_cause)
7272
// This should all be refactored later it's a bit of a mess ngl
73-
if(null, "revival_sickess", "anesthetics", "recent_defib")
73+
if(null, /datum/status_effect/anesthetic::id, /datum/status_effect/recent_defib::id)
7474
return "unknown causes"
7575

7676
if(OXY_DAMAGE)

0 commit comments

Comments
 (0)