mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
Wisdom Cows contain unusual milk (#82269)
## About The Pull Request Wisdom Cows can now be milked for a random reagent (excepting the randomly generated reagent blacklist). Also I changed it to say `you milk the cow` instead of `you milk the udder` because the latter is stupid. ## Why It's Good For The Game My experience is that people totally ignore this event when it occurs, which is _fine_ when we have so many events and they don't all need to be high impact but I think someone discovering that you can milk the cow for cognac or meth or something could add something to a round. I want people to bicker over ownership of the cow, basically. If the reagent is annoying you can simply speak to the cow to receive its wisdom and it will disappear. ## Changelog 🆑 add: Wise cows produce surprising milk. spellcheck: You now milk the owner of an udder, not the udder. /🆑
This commit is contained in:
@@ -7,17 +7,20 @@
|
||||
description = "A cow appears to tell you wise words."
|
||||
admin_setup = list(
|
||||
/datum/event_admin_setup/set_location/wisdom_cow,
|
||||
/datum/event_admin_setup/listed_options/wisdom_cow,
|
||||
/datum/event_admin_setup/listed_options/wisdom_cow_wisdom,
|
||||
/datum/event_admin_setup/input_number/wisdom_cow,
|
||||
/datum/event_admin_setup/listed_options/wisdom_cow_milk,
|
||||
)
|
||||
|
||||
/datum/round_event/wisdomcow
|
||||
///Location override that, if set causes the cow to spawn in a pre-determined locaction instead of randomly.
|
||||
var/turf/spawn_location
|
||||
///An override that, if set rigs the cow to spawn with a specific wisdow rather than a random one.
|
||||
///An override that if set rigs the cow to spawn with a specific wisdow rather than a random one.
|
||||
var/selected_wisdom
|
||||
///An override that, if set modifies the amount of wisdow the cow will add/remove, if not set will default to 500.
|
||||
///An override that if set modifies the amount of wisdow the cow will add/remove, if not set will default to 500.
|
||||
var/selected_experience
|
||||
///An override that if set modifies what you can milk out of the cow
|
||||
var/datum/reagent/forced_reagent_type
|
||||
|
||||
/datum/round_event/wisdomcow/announce(fake)
|
||||
priority_announce("A wise cow has been spotted in the area. Be sure to ask for her advice.", "Nanotrasen Cow Ranching Agency")
|
||||
@@ -28,7 +31,7 @@
|
||||
targetloc = spawn_location
|
||||
else
|
||||
targetloc = get_safe_random_station_turf()
|
||||
var/mob/living/basic/cow/wisdom/wise = new(targetloc, selected_wisdom, selected_experience)
|
||||
var/mob/living/basic/cow/wisdom/wise = new(targetloc, selected_wisdom, selected_experience, forced_reagent_type)
|
||||
do_smoke(1, holder = wise, location = targetloc)
|
||||
announce_to_ghosts(wise)
|
||||
|
||||
@@ -38,14 +41,14 @@
|
||||
/datum/event_admin_setup/set_location/wisdom_cow/apply_to_event(datum/round_event/wisdomcow/event)
|
||||
event.spawn_location = chosen_turf
|
||||
|
||||
/datum/event_admin_setup/listed_options/wisdom_cow
|
||||
/datum/event_admin_setup/listed_options/wisdom_cow_wisdom
|
||||
input_text = "Select a specific wisdom type?"
|
||||
normal_run_option = "Random Wisdom"
|
||||
|
||||
/datum/event_admin_setup/listed_options/wisdom_cow/get_list()
|
||||
/datum/event_admin_setup/listed_options/wisdom_cow_wisdom/get_list()
|
||||
return subtypesof(/datum/skill)
|
||||
|
||||
/datum/event_admin_setup/listed_options/wisdom_cow/apply_to_event(datum/round_event/wisdomcow/event)
|
||||
/datum/event_admin_setup/listed_options/wisdom_cow_wisdom/apply_to_event(datum/round_event/wisdomcow/event)
|
||||
event.selected_wisdom = chosen
|
||||
|
||||
/datum/event_admin_setup/input_number/wisdom_cow
|
||||
@@ -56,5 +59,13 @@
|
||||
|
||||
/datum/event_admin_setup/input_number/wisdom_cow/apply_to_event(datum/round_event/wisdomcow/event)
|
||||
event.selected_experience = chosen_value
|
||||
|
||||
|
||||
|
||||
/datum/event_admin_setup/listed_options/wisdom_cow_milk
|
||||
input_text = "Select a kind of milk?"
|
||||
normal_run_option = "Random Reagent"
|
||||
|
||||
/datum/event_admin_setup/listed_options/wisdom_cow_milk/get_list()
|
||||
return sort_list(subtypesof(/datum/reagent), /proc/cmp_typepaths_asc)
|
||||
|
||||
/datum/event_admin_setup/listed_options/wisdom_cow_milk/apply_to_event(datum/round_event/scrubber_overflow/event)
|
||||
event.forced_reagent_type = chosen
|
||||
|
||||
Reference in New Issue
Block a user