Skip to content

Commit

Permalink
[BOUNTY] Rayne Corp Brand Bee Nuke (actually tested) (Monkestation#1125)
Browse files Browse the repository at this point in the history
* Bee Nuke

* Update bee_nuke.dm

* move beenuke to monkestation file instead of tgfile

* removing the beenuke from Tg files

* Update crate.dm

* turn beenuke into an actual item

wtf

* ye

* Update bee_nuke.dm

* Update bee_nuke.dm

* real

* Update code/modules/events/scrubber_clog.dm

Co-authored-by: wraith-54321 <[email protected]>

* Update code/modules/events/scrubber_clog.dm

Co-authored-by: wraith-54321 <[email protected]>

* Update scrubber_clog.dm

* Update scrubber_clog.dm

* Update scrubber_clog.dm

* Update crate.dm

* Update bee_nuke.dm

* hewhehehaw

* Update monkestation/code/modules/events/scrubber_clog.dm

Co-authored-by: wraith-54321 <[email protected]>

* Update monkestation/code/modules/events/scrubber_clog.dm

Co-authored-by: wraith-54321 <[email protected]>

* Update bee_nuke.dm

* Update monkestation/code/modules/antagonists/nukeop/equipment/nuclear_bomb/bee_nuke.dm

Co-authored-by: wraith-54321 <[email protected]>

* Update monkestation/code/modules/antagonists/nukeop/equipment/nuclear_bomb/bee_nuke.dm

Co-authored-by: wraith-54321 <[email protected]>

* Update bee_nuke.dm

* Update bee_nuke.dm

---------

Co-authored-by: wraith-54321 <[email protected]>
Co-authored-by: dwasint <[email protected]>
  • Loading branch information
3 people authored Mar 16, 2024
1 parent 110a42e commit 71a62b7
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 1 deletion.
2 changes: 1 addition & 1 deletion monkestation/code/game/objects/items/storage/crate.dm
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
new /obj/item/toy/plush/ratplush(src)
new /obj/item/toy/plush/narplush(src)
if(94)
new /obj/item/clothing/under/misc/syndicate_souvenir(src)
new /obj/machinery/nuclearbomb/bee(src) //just replaces the syndicate tshirt with the bomb
if(96)
new /mob/living/simple_animal/hostile/asteroid/elite/broodmother_child(src)
if(95)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/// A fake nuke that actually contains bee.
/obj/machinery/nuclearbomb/bee
name = "\improper Rayne Corp brand nuclear fission explosive"
desc = "One of the more successful achievements of the Rayne Corporation Biological Warfare Division, their nuclear fission explosives are renowned for being affordable to produce and devastatingly effective. Signs explain that though this particular device has been (hopefully) decommissioned, you should probably be careful around it considering it's a bomb. - at least, the sign says that's what it is. There seems to be a picture of a bee on the back."
proper_bomb = FALSE
/// The keg located within the beer nuke.
/// Reagent that is produced once the nuke detonates.
/// Round event control we might as well keep track of instead of locating every time

/obj/machinery/nuclearbomb/bee/Initialize(mapload)
. = ..()
QDEL_NULL(core)

/obj/machinery/nuclearbomb/bee/Destroy()
return ..()



/obj/machinery/nuclearbomb/bee/actually_explode()
SSticker.roundend_check_paused = FALSE
var/turf/bomb_location = get_turf(src)
if(!bomb_location)
disarm_nuke()
return
if(is_station_level(bomb_location.z))
addtimer(CALLBACK(src, PROC_REF(really_actually_explode)), 11 SECONDS)
else
visible_message(span_notice("[src] fizzes ominously."))


/obj/machinery/nuclearbomb/bee/disarm_nuke(mob/disarmer)
exploding = FALSE
exploded = TRUE
return ..()

/obj/machinery/nuclearbomb/bee/really_actually_explode(detonation_status)
//if it's always hooked in it'll override admin choices
disarm_nuke()
force_event(/datum/round_event_control/scrubber_clog/flood, "A bee nuke")

/// signal sent from overflow control when it fires an event

25 changes: 25 additions & 0 deletions monkestation/code/modules/events/scrubber_clog.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/datum/round_event_control/scrubber_clog/flood //I have it here cause of the extra silly spaghetti code all of the scrubbers depend on being in here
name = "Scrubber Clog: Flood"
typepath = /datum/round_event/scrubber_clog/flood
weight = 0
max_occurrences = 0
description = "Bees absolutely flood out of a scrubber, used by the Rayne corp bee nuke."
min_wizard_trigger_potency = 3
max_wizard_trigger_potency = 6

/datum/round_event/scrubber_clog/flood
maximum_spawns = 250

/datum/round_event/scrubber_clog/flood/setup()
. = ..()
end_when = rand(2000, 4000)
spawn_delay = rand(1, 2) //IT MUST FLOOD

/datum/round_event/scrubber_clog/flood/announce()
priority_announce("Unusual lifesign readings detected in the entire ventilation network.", "Lifesign Alert", ANNOUNCER_ALIENS)

/datum/round_event/scrubber_clog/flood/get_mob()
var/static/list/mob_list = list(
/mob/living/basic/bee,
)
return pick(mob_list)
2 changes: 2 additions & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -5891,6 +5891,7 @@
#include "monkestation\code\modules\antagonists\heretic\items\heretic_armor.dm"
#include "monkestation\code\modules\antagonists\heretic\knowledge\ash_lore.dm"
#include "monkestation\code\modules\antagonists\heretic\knowledge\sacrifice_knowledge\sacrifice_buff.dm"
#include "monkestation\code\modules\antagonists\nukeop\equipment\nuclear_bomb\bee_nuke.dm"
#include "monkestation\code\modules\antagonists\slasher\__base_slasher_additions.dm"
#include "monkestation\code\modules\antagonists\slasher\ghost_role.dm"
#include "monkestation\code\modules\antagonists\slasher\slasher_datum.dm"
Expand Down Expand Up @@ -6182,6 +6183,7 @@
#include "monkestation\code\modules\donator\code\item\plush.dm"
#include "monkestation\code\modules\donator\code\mob\pets.dm"
#include "monkestation\code\modules\events\brand_intelligence.dm"
#include "monkestation\code\modules\events\scrubber_clog.dm"
#include "monkestation\code\modules\events\summon_wizard_event.dm"
#include "monkestation\code\modules\events\ghost_role\drifting_contractor.dm"
#include "monkestation\code\modules\events\wizard\summon_gifts.dm"
Expand Down

0 comments on commit 71a62b7

Please sign in to comment.