mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-17 11:05:16 +01:00
[MIRROR] Fix verbs tab not getting updated in certain instances (#937)
* Fix verbs tab not getting updated in certain instances (#53876) There are a number of methods of assuming direct control of mobs or giving other players direct control. I have made sure these now appropriately update verbs. Shamelessly ripped the functionality from /mob/dead/observer/verb/reenter_corpse() - It seemed to do what I wanted to accomplish in the same context. I couldn't find any other method to refresh the verbs tab. * Fix verbs tab not getting updated in certain instances Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
@@ -971,6 +971,7 @@
|
||||
SSblackbox.record_feedback("tally", "admin_verb", 1, "Ghost Drag Control")
|
||||
|
||||
tomob.ckey = frommob.ckey
|
||||
tomob.client?.init_verbs()
|
||||
qdel(frommob)
|
||||
|
||||
return TRUE
|
||||
|
||||
@@ -243,6 +243,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
||||
if(M.ckey)
|
||||
M.ghostize(FALSE)
|
||||
M.ckey = ckey
|
||||
init_verbs()
|
||||
if(isobserver(adminmob))
|
||||
qdel(adminmob)
|
||||
SSblackbox.record_feedback("tally", "admin_verb", 1, "Assume Direct Control") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
@@ -267,6 +268,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
||||
if(M.ckey)
|
||||
M.ghostize(FALSE)
|
||||
M.ckey = newkey.key
|
||||
M.client?.init_verbs()
|
||||
if(delmob)
|
||||
qdel(oldmob)
|
||||
message_admins("<span class='adminnotice'>[key_name_admin(usr)] gave away direct control of [M] to [newkey].</span>")
|
||||
|
||||
Reference in New Issue
Block a user