Various Fixes

This commit is contained in:
Casey
2022-06-17 20:01:03 -04:00
committed by CHOMPStation2
parent 1740fb34de
commit c1187d1942
4 changed files with 32 additions and 4 deletions

View File

@@ -90,7 +90,9 @@
src.set_dir(turn(src.dir, 90)) src.set_dir(turn(src.dir, 90))
/obj/structure/closet/crate/attackby(obj/item/weapon/W as obj, mob/user as mob) /obj/structure/closet/crate/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(opened) if(W.is_wrench() && istype(src,/obj/structure/closet/crate/bin))
return ..()
else if(opened)
if(isrobot(user)) if(isrobot(user))
return return
if(W.loc != user) // This should stop mounted modules ending up outside the module. if(W.loc != user) // This should stop mounted modules ending up outside the module.

View File

@@ -35,10 +35,23 @@
set category = "Admin" set category = "Admin"
set name = "Aghost" set name = "Aghost"
if(!holder) return if(!holder) return
var/build_mode
if(src.buildmode)
build_mode = tgui_alert(src, "You appear to be currently in buildmode. Do you want to re-enter buildmode after aghosting?", "Buildmode", list("Yes", "No"))
if(build_mode != "Yes")
to_chat(src, "Will not re-enter buildmode after switch.")
if(istype(mob,/mob/observer/dead)) if(istype(mob,/mob/observer/dead))
//re-enter //re-enter
var/mob/observer/dead/ghost = mob var/mob/observer/dead/ghost = mob
if(ghost.can_reenter_corpse) if(ghost.can_reenter_corpse)
if(build_mode)
togglebuildmode(mob)
ghost.reenter_corpse()
if(build_mode == "Yes")
togglebuildmode(mob)
else
ghost.reenter_corpse() ghost.reenter_corpse()
else else
to_chat(ghost, "<span class='filter_system warning'>Error: Aghost: Can't reenter corpse.</span>") to_chat(ghost, "<span class='filter_system warning'>Error: Aghost: Can't reenter corpse.</span>")
@@ -51,9 +64,22 @@
else else
//ghostize //ghostize
var/mob/body = mob var/mob/body = mob
<<<<<<< HEAD
var/mob/observer/dead/ghost = body.ghostize(1) var/mob/observer/dead/ghost = body.ghostize(1)
ghost.admin_ghosted = 1 ghost.admin_ghosted = 1
log_and_message_admins("[key_name(src)] admin-ghosted.") // CHOMPEdit - Add logging. log_and_message_admins("[key_name(src)] admin-ghosted.") // CHOMPEdit - Add logging.
=======
var/mob/observer/dead/ghost
if(build_mode)
togglebuildmode(body)
ghost = body.ghostize(1)
ghost.admin_ghosted = 1
if(build_mode == "Yes")
togglebuildmode(ghost)
else
ghost = body.ghostize(1)
ghost.admin_ghosted = 1
>>>>>>> 2c7c9c3fec... Merge pull request #13094 from ItsSelis/rcon-fix
if(body) if(body)
body.teleop = ghost body.teleop = ghost
if(!body.key) if(!body.key)

View File

@@ -151,7 +151,7 @@
switch(new_rank) switch(new_rank)
if(null,"") return if(null,"") return
if("*New Rank*") if("*New Rank*")
new_rank = input(usr, "Please input a new rank", "New custom rank", null, null) as null|text new_rank = input(usr, "Please input a new rank", "New custom rank") as null|text
if(config.admin_legacy_system) if(config.admin_legacy_system)
new_rank = ckeyEx(new_rank) new_rank = ckeyEx(new_rank)
if(!new_rank) if(!new_rank)

View File

@@ -40,7 +40,7 @@
smes_data["RCON_tag"] = SMES.RCon_tag smes_data["RCON_tag"] = SMES.RCon_tag
smeslist.Add(list(smes_data)) smeslist.Add(list(smes_data))
data["pages"] = number_pages data["pages"] = number_pages + 1
data["current_page"] = current_page data["current_page"] = current_page
data["smes_info"] = sortByKey(smeslist, "RCON_tag") data["smes_info"] = sortByKey(smeslist, "RCON_tag")