8ff7285645
The main goal was to remove all the pointless shit in the UI style dmis, but this commit actually goes a bit deeper than that. Formally renames the "hurt" intent to "harm", in line with everything else in the world. Removes the old screen1_... .dmis. They've been replaced with screen_... .dmis. They function much the same. screen_gen.dmi is used for things which apply to multiple UI styles, such as storage slot sprites, or the intent selector. (These can still be overridden in HUD code, though.) Item action buttons have been changed to use a template from the UI style, and the icon_state of the item. var/icon_action_button has been removed- varvar/action_button_name must be used instead to add action buttons for items. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5826 316c924e-a436-60f5-8080-3fe189b3f50e
34 lines
938 B
Plaintext
34 lines
938 B
Plaintext
var/list/obj/effect/bump_teleporter/BUMP_TELEPORTERS = list()
|
|
|
|
/obj/effect/bump_teleporter
|
|
name = "bump-teleporter"
|
|
icon = 'icons/mob/screen_gen.dmi'
|
|
icon_state = "x2"
|
|
var/id = null //id of this bump_teleporter.
|
|
var/id_target = null //id of bump_teleporter which this moves you to.
|
|
invisibility = 101 //nope, can't see this
|
|
anchored = 1
|
|
density = 1
|
|
opacity = 0
|
|
|
|
/obj/effect/bump_teleporter/New()
|
|
..()
|
|
BUMP_TELEPORTERS += src
|
|
|
|
/obj/effect/bump_teleporter/Del()
|
|
BUMP_TELEPORTERS -= src
|
|
..()
|
|
|
|
/obj/effect/bump_teleporter/Bumped(atom/user)
|
|
if(!ismob(user))
|
|
//user.loc = src.loc //Stop at teleporter location
|
|
return
|
|
|
|
if(!id_target)
|
|
//user.loc = src.loc //Stop at teleporter location, there is nowhere to teleport to.
|
|
return
|
|
|
|
for(var/obj/effect/bump_teleporter/BT in BUMP_TELEPORTERS)
|
|
if(BT.id == src.id_target)
|
|
usr.loc = BT.loc //Teleport to location with correct id.
|
|
return |