Clear PDA now has all themes (#76674)

## About The Pull Request

Gives all themes to clear PDAs

## Why It's Good For The Game

Clear PDAs are found/purchased late into a round and theme apps would
generally already be found and installed in PDAs. This means there's
nothing left to install in the crystal PDA, so instead I thought why
shouldn't they just get all themes?

## Changelog

🆑
qol: Clear PDAs now has all themes in their themify app by default.
/🆑
This commit is contained in:
John Willard
2023-07-10 18:26:22 +01:00
committed by GitHub
parent de3fb72973
commit ee78ceea95
2 changed files with 12 additions and 1 deletions
@@ -425,3 +425,10 @@
greyscale_config = null
greyscale_colors = null
long_ranged = TRUE
/obj/item/modular_computer/pda/clear/Initialize(mapload)
. = ..()
var/datum/computer_file/program/themeify/theme_app = locate() in stored_files
if(theme_app)
for(var/theme_key in GLOB.pda_name_to_theme - GLOB.default_pda_themes)
theme_app.imported_themes += theme_key
@@ -28,7 +28,11 @@
switch(action)
if("PRG_change_theme")
var/selected_theme = params["selected_theme"]
if(!GLOB.default_pda_themes.Find(selected_theme) && !imported_themes.Find(selected_theme) && !(computer.obj_flags & EMAGGED))
if( \
!GLOB.default_pda_themes.Find(selected_theme) && \
!imported_themes.Find(selected_theme) && \
!(computer.obj_flags & EMAGGED) \
)
return FALSE
computer.device_theme = GLOB.pda_name_to_theme[selected_theme]
return TRUE