Fixes some portal logging. (#17655)

* fix

* pass the user

* named arg

Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>

Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
Charlie
2022-04-24 15:08:08 +01:00
committed by GitHub
co-authored by SteelSlayer
parent a89c6c8086
commit 5e7ec8ea7f
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -25,7 +25,8 @@
GLOB.portals += src
target = _target
creation_obj_data = list(creation_object.UID(), "[creation_object.name]") // Store the name incase the object is deleted.
if(creation_object)
creation_obj_data = list(creation_object.UID(), "[creation_object.name]") // Store the name incase the object is deleted.
creation_mob_ckey = creation_mob?.ckey
if(lifespan > 0)
@@ -109,7 +109,7 @@ Frequency:
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | ACID_PROOF
var/active_portals = 0
/obj/item/hand_tele/attack_self(mob/user as mob)
/obj/item/hand_tele/attack_self(mob/user)
var/turf/current_location = get_turf(user)//What turf is the user on?
if(!current_location||!is_teleport_allowed(current_location.z))//If turf was not found or they're somewhere teleproof
to_chat(user, "<span class='notice'>\The [src] is malfunctioning.</span>")
@@ -139,7 +139,7 @@ Frequency:
return
var/T = L[t1]
user.show_message("<span class='notice'>Locked In.</span>", 2)
var/obj/effect/portal/P = new /obj/effect/portal(get_turf(src), T, src)
var/obj/effect/portal/P = new /obj/effect/portal(get_turf(src), T, src, creation_mob = user)
try_move_adjacent(P)
active_portals++
add_fingerprint(user)