mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-02 21:11:57 +00:00
* Refactors armor into dedicated subtypes * start * most tg things * pain (#18584) * shit * non-mod changes * compile Co-authored-by: John Doe <gamingskeleton3@gmail.com> * #18291 * compile fix * ??? Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com> Co-authored-by: John Doe <gamingskeleton3@gmail.com> Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
36 lines
1.5 KiB
Plaintext
36 lines
1.5 KiB
Plaintext
/datum/material/pizza
|
|
name = "pizza"
|
|
desc = "~Jamme, jamme, n'coppa, jamme ja! Jamme, jamme, n'coppa jamme ja, funi-culi funi-cala funi-culi funi-cala!! Jamme jamme ja funiculi funicula!~"
|
|
color = "#FF9F23"
|
|
greyscale_colors = "#FF9F23"
|
|
categories = list(MAT_CATEGORY_RIGID = TRUE, MAT_CATEGORY_BASE_RECIPES = TRUE, MAT_CATEGORY_ITEM_MATERIAL=TRUE)
|
|
sheet_type = /obj/item/stack/sheet/pizza
|
|
value_per_unit = 0.05
|
|
beauty_modifier = 0.1
|
|
strength_modifier = 0.7
|
|
armor_modifiers = list(MELEE = 0.3, BULLET = 0.3, LASER = 1.2, ENERGY = 1.2, BOMB = 0.3, FIRE = 1, ACID = 1)
|
|
item_sound_override = 'sound/effects/meatslap.ogg'
|
|
turf_sound_override = FOOTSTEP_MEAT
|
|
texture_layer_icon_state = "pizza"
|
|
|
|
/datum/material/pizza/on_removed(atom/source, amount, material_flags)
|
|
. = ..()
|
|
qdel(source.GetComponent(/datum/component/edible))
|
|
|
|
/datum/material/pizza/on_applied_obj(obj/O, amount, material_flags)
|
|
. = ..()
|
|
make_edible(O, amount, material_flags)
|
|
|
|
/datum/material/pizza/on_applied_turf(turf/T, amount, material_flags)
|
|
. = ..()
|
|
make_edible(T, amount, material_flags)
|
|
|
|
/datum/material/pizza/proc/make_edible(atom/source, amount, material_flags)
|
|
var/nutriment_count = 3 * (amount / MINERAL_MATERIAL_AMOUNT)
|
|
var/oil_count = 2 * (amount / MINERAL_MATERIAL_AMOUNT)
|
|
source.AddComponent(/datum/component/edible, \
|
|
initial_reagents = list(/datum/reagent/consumable/nutriment = nutriment_count, /datum/reagent/consumable/cooking_oil = oil_count), \
|
|
foodtypes = GRAIN | MEAT | DAIRY | VEGETABLES, \
|
|
eat_time = 3 SECONDS, \
|
|
tastes = list("crust", "tomato", "cheese", "meat"))
|