mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[MIRROR] Add a new fishing minigame to NTOS (#9205)
Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/datum/computer_file/program/fishing
|
||||
filename = "fishingminigame"
|
||||
filedesc = "Fishy Fishy 905"
|
||||
program_icon_state = "arcade"
|
||||
extended_desc = "A little fishing minigame for when you're really bored."
|
||||
size = 3
|
||||
requires_ntnet = FALSE
|
||||
available_on_ntnet = TRUE
|
||||
tgui_id = "NtosFishing"
|
||||
usage_flags = PROGRAM_ALL
|
||||
|
||||
/datum/computer_file/program/fishing/tgui_data(mob/user)
|
||||
return get_header_data()
|
||||
|
||||
/datum/computer_file/program/fishing/tgui_act(action, list/params)
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
|
||||
switch(action)
|
||||
if("lose")
|
||||
playsound(computer, 'sound/arcade/lose.ogg', 50, TRUE, extrarange = -3, falloff = 0.1)
|
||||
. = TRUE
|
||||
if("win")
|
||||
playsound(computer, 'sound/arcade/win.ogg', 50, TRUE, extrarange = -3, falloff = 0.1)
|
||||
. = TRUE
|
||||
Reference in New Issue
Block a user