-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor Jukebox Beacons Yeah so my last implementation... it was bad. This version entirely foregoes frankensteining code from everywhere and is just a slight modification of Roulette Beacon code. which is MUCH nicer. I also gave it its own custom icon! * Further Destinkification 2/3 of the requested changes were also originated from roulette beacon code, so that should probably get a quick refactor too someday. * return
- Loading branch information
Showing
6 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/obj/item/jukebox_beacon | ||
name = "jukebox beacon" | ||
desc = "N.T. jukebox beacon, toss it down and you will have a complementary jukebox delivered to you. It comes with a free wrench to move it after deployment." | ||
icon = 'monkestation/icons/obj/items_and_weapons.dmi' | ||
icon_state = "music_beacon" | ||
var/used = FALSE | ||
|
||
/obj/item/jukebox_beacon/attack_self() | ||
if(used) | ||
return | ||
loc.visible_message(span_warning("\The [src] begins to beep loudly!")) | ||
used = TRUE | ||
addtimer(CALLBACK(src, PROC_REF(launch_payload)), 4 SECONDS) | ||
|
||
/obj/item/jukebox_beacon/proc/launch_payload() | ||
if(QDELETED(src)) | ||
return | ||
podspawn(list( | ||
"target" = get_turf(src), | ||
"spawn" = list(/obj/item/wrench, /obj/machinery/media/jukebox), | ||
"style" = STYLE_CENTCOM | ||
)) | ||
qdel(src) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters