mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 20:57:23 +01:00
[MIRROR] Replace the alt click menu with the RPG Lootpanel (#11170)
Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com>
This commit is contained in:
co-authored by
ShadowLarkens
parent
5a7afc12df
commit
23fee17c6d
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user