mirror of
https://github.com/goonstation/goonstation-2016.git
synced 2026-08-30 17:36:35 +01:00
Initial Commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
/datum/buildmode/spawn_inside
|
||||
name = "Object Spawn (place inside)"
|
||||
desc = {"***********************************************************<br>
|
||||
Right Mouse Button on buildmode button = Set object type<br>
|
||||
Left Mouse Button on mob/obj = Place object inside object or turf<br>
|
||||
Right Mouse Button = Delete an object from contents<br>
|
||||
***********************************************************"}
|
||||
icon_state = "buildmode_putin"
|
||||
var/objpath = null
|
||||
|
||||
click_mode_right(var/ctrl, var/alt, var/shift)
|
||||
objpath = get_one_match(input("Type path", "Type path", "/obj/closet"), /atom/movable)
|
||||
|
||||
click_left(atom/object, var/ctrl, var/alt, var/shift)
|
||||
if (!objpath)
|
||||
boutput(usr, "<span style=\"color:red\">No object path!</span>")
|
||||
return
|
||||
var/atom/movable/M = object
|
||||
if(istype(M) && objpath)
|
||||
new objpath(object)
|
||||
blink(get_turf(object))
|
||||
|
||||
click_right(atom/object, var/ctrl, var/alt, var/shift)
|
||||
var/atom/movable/M = object
|
||||
if (istype(M))
|
||||
if (!M.contents.len)
|
||||
return
|
||||
var/which = input("Delete what from [M]'s contents?", "Deleting contents", null) as null|anything in M.contents
|
||||
if (which)
|
||||
qdel(which)
|
||||
Reference in New Issue
Block a user