mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Portals from hand tele and portal gun are now logged (#10898)
* Portals from hand tele and portal gun are now logged * remove owner
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
icon_state = "portalgun[setting]"
|
||||
item_state = "portalgun[setting]"
|
||||
|
||||
/obj/item/weapon/gun/portalgun/proc/open_portal(var/proj_setting,var/turf/T,var/atom/A = null)
|
||||
/obj/item/weapon/gun/portalgun/proc/open_portal(var/proj_setting,var/turf/T,var/atom/A = null,var/mob/firer)
|
||||
if(!T)
|
||||
return
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
blue_portal = null
|
||||
blue_portal = new_portal
|
||||
blue_portal.creator = src
|
||||
|
||||
blue_portal.owner = firer
|
||||
if(1)
|
||||
if(red_portal)
|
||||
qdel(red_portal)
|
||||
@@ -79,6 +79,7 @@
|
||||
red_portal = new_portal
|
||||
red_portal.icon_state = "portal1"
|
||||
red_portal.creator = src
|
||||
red_portal.owner = firer
|
||||
|
||||
sync_portals()
|
||||
|
||||
|
||||
@@ -318,7 +318,7 @@ obj/item/projectile/kinetic/New()
|
||||
forceMove(get_step(loc,dir))
|
||||
|
||||
if(!(locate(/obj/effect/portal) in loc))
|
||||
P.open_portal(setting,loc,A)
|
||||
P.open_portal(setting,loc,A,firer)
|
||||
bullet_die()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user