[MIRROR] Replace the alt click menu with the RPG Lootpanel (#11170)

Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-07-11 08:27:55 +02:00
committed by GitHub
co-authored by ShadowLarkens
parent 5a7afc12df
commit 23fee17c6d
31 changed files with 1269 additions and 490 deletions
+3
View File
@@ -184,3 +184,6 @@
/// The DPI scale of the client. 1 is equivalent to 100% window scaling, 2 will be 200% window scaling
var/window_scaling
/// Loot panel for the client
var/datum/lootpanel/loot_panel
+3
View File
@@ -305,6 +305,8 @@
tgui_say.initialize()
tgui_shocker.initialize()
loot_panel = new(src)
connection_time = world.time
connection_realtime = world.realtime
connection_timeofday = world.timeofday
@@ -392,6 +394,7 @@
GLOB.directory -= ckey
GLOB.clients -= src
QDEL_NULL(loot_panel)
..()
return QDEL_HINT_HARDDEL_NOW
@@ -53,7 +53,7 @@
/datum/category_item/player_setup_item/general/nif/copy_to_mob(var/mob/living/carbon/human/character)
//If you had a NIF...
if(istype(character) && ispath(pref.nif_path) && pref.nif_durability)
if(istype(character) && ispath(pref.nif_path) && pref.nif_durability && !ismannequin(character))
new pref.nif_path(character, pref.nif_durability, pref.nif_savedata)
/datum/category_item/player_setup_item/general/nif/tgui_data(mob/user, datum/tgui/ui, datum/tgui_state/state)