mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-31 12:41:46 +00:00
* initial commit (broken)
* load the html
* fix this
* Fix various issues with browser statpanel
* Fix Alt Clicking opening up a window and Add back some object verbs to the browser stat panel
* Optimize stat panel and fix guardian verbs
* Restyles Stat Panel, Adds Subpanel Sub-Categories
* Use better layout for verbs in stat panel
* Updates statpanel verb widths to be more dynamic at higher screen resolutions.
* Adjust stat panel grid item widths and breakpoints
* refactors statpanel to use tgui API
* CI moment
* more CI
* this stupid thing
* Apply suggestions from code review
Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
* Update code/modules/client/client_procs.dm
* ci fix
* emergency mc debug view
* temp revert some code change suggestions due to massive runtiming
* proper atom click topic implementation
* optimise
* mob clicking in stat panels work
* yeet spell tab thingy
* yeet simple stat panel pref
* allow insertion of html into MC tab content
* tidy up status tab
* Apply suggestions from code review
* fix this
* fix CI
* oops
* fix index runtime
* fixes MC tab showing up for mentors, fixes runtime
* safeties!
* Return of theme support
* more fixes
* fix view range pref, tidy prefs tab
* Remove old stat panel from themes
* fixes
* make sure verbs don't go missing
* fix ooc/looc breaking
* Revert "make sure verbs don't go missing"
This reverts commit 7d07ad45ed.
* fix this properly
* fix stat panel hitting rate limiters
* fix borg status tab
* Object Window Niceties
* Adds file cycling for icon2base64
* optimizes icon2html() for icon files known to be in the rsc at compile time
* CI moment
* remove dupe emergency shuttle timers
* more robust verb updates
* statpanel tweaks
* zip archived changelog to avoid search results
* optimise
* fix mentor chat wonkyness when disabled
* debug log moment
* i am very smart
* reintroduce this because it was needed
* better time listings
* less jank
* stops telling admins they arent mentors
* returns MC tab pref for admins
* Update code/controllers/subsystem/SSstatpanel.dm
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
* lewcc
* OD typemaker prep
---------
Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
Co-authored-by: Aylong <alexanderkitsa@gmail.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
54 lines
1.9 KiB
Plaintext
54 lines
1.9 KiB
Plaintext
/proc/possess(obj/O as obj in world)
|
|
set name = "\[Admin\] Possess Obj"
|
|
|
|
if(!check_rights(R_POSSESS))
|
|
return
|
|
|
|
if(istype(O,/obj/singularity))
|
|
if(GLOB.configuration.general.forbid_singulo_possession) // I love how this needs to exist
|
|
to_chat(usr, "It is forbidden to possess singularities.")
|
|
return
|
|
|
|
var/turf/T = get_turf(O)
|
|
|
|
var/confirm = alert("Are you sure you want to possess [O]?", "Confirm possession", "Yes", "No")
|
|
|
|
if(confirm != "Yes")
|
|
return
|
|
if(T)
|
|
log_admin("[key_name(usr)] has possessed [O] ([O.type]) at ([T.x], [T.y], [T.z])")
|
|
message_admins("[key_name_admin(usr)] has possessed [O] ([O.type]) at ([T.x], [T.y], [T.z])", 1)
|
|
else
|
|
log_admin("[key_name(usr)] has possessed [O] ([O.type]) at an unknown location")
|
|
message_admins("[key_name_admin(usr)] has possessed [O] ([O.type]) at an unknown location", 1)
|
|
|
|
if(!usr.control_object) //If you're not already possessing something...
|
|
usr.name_archive = usr.real_name
|
|
|
|
usr.loc = O
|
|
usr.real_name = O.name
|
|
usr.name = O.name
|
|
usr.client.eye = O
|
|
usr.control_object = O
|
|
SSblackbox.record_feedback("tally", "admin_verb", 1, "Possess Object") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/proc/release(obj/O as obj in world)
|
|
set name = "\[Admin\] Release Obj"
|
|
//usr.loc = get_turf(usr)
|
|
|
|
if(!check_rights(R_POSSESS))
|
|
return
|
|
|
|
if(usr.control_object && usr.name_archive) //if you have a name archived and if you are actually relassing an object
|
|
usr.real_name = usr.name_archive
|
|
usr.name = usr.real_name
|
|
if(ishuman(usr))
|
|
var/mob/living/carbon/human/H = usr
|
|
H.name = H.get_visible_name()
|
|
// usr.regenerate_icons() //So the name is updated properly
|
|
|
|
usr.loc = O.loc // Appear where the object you were controlling is -- TLE
|
|
usr.client.eye = usr
|
|
usr.control_object = null
|
|
SSblackbox.record_feedback("tally", "admin_verb", 1, "Release Object") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|