mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
27 lines
739 B
Plaintext
27 lines
739 B
Plaintext
/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
|