mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
@@ -216,12 +216,14 @@
|
|||||||
A.CtrlClick(src)
|
A.CtrlClick(src)
|
||||||
return
|
return
|
||||||
/atom/proc/CtrlClick(var/mob/user)
|
/atom/proc/CtrlClick(var/mob/user)
|
||||||
|
user.stop_pulling()
|
||||||
return
|
return
|
||||||
|
|
||||||
/atom/movable/CtrlClick(var/mob/user)
|
/atom/movable/CtrlClick(var/mob/user)
|
||||||
if(Adjacent(user))
|
if(Adjacent(user))
|
||||||
user.start_pulling(src)
|
user.start_pulling(src)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Alt click
|
Alt click
|
||||||
Unused except for AI
|
Unused except for AI
|
||||||
|
|||||||
@@ -79,6 +79,15 @@
|
|||||||
icon_state = "evidenceobj"
|
icon_state = "evidenceobj"
|
||||||
return
|
return
|
||||||
|
|
||||||
|
obj/item/weapon/evidencebag/attackby(obj/item/weapon/W as obj, mob/living/user as mob)
|
||||||
|
if(istype(W, /obj/item/weapon/pen))
|
||||||
|
var/new_label = sanitize(trim(input("What should the new label be", "") as null|text))
|
||||||
|
if(new_label)
|
||||||
|
name = "bag ([new_label])"
|
||||||
|
user << "\blue You write on the label of the bag."
|
||||||
|
else
|
||||||
|
..(W, user)
|
||||||
|
|
||||||
/obj/item/weapon/storage/box/evidence
|
/obj/item/weapon/storage/box/evidence
|
||||||
name = "evidence bag box"
|
name = "evidence bag box"
|
||||||
desc = "A box claiming to contain evidence bags."
|
desc = "A box claiming to contain evidence bags."
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
|
|
||||||
/obj/structure/bookcase/attack_hand(var/mob/user as mob)
|
/obj/structure/bookcase/attack_hand(var/mob/user as mob)
|
||||||
if(contents.len)
|
if(contents.len)
|
||||||
var/obj/item/weapon/book/choice = input("Which book would you like to remove from the shelf?") in contents as obj|null
|
var/obj/item/weapon/book/choice = input("Which book would you like to remove from the shelf?") as null|obj in contents
|
||||||
if(choice)
|
if(choice)
|
||||||
if(!usr.canmove || usr.stat || usr.restrained() || !in_range(loc, usr))
|
if(!usr.canmove || usr.stat || usr.restrained() || !in_range(loc, usr))
|
||||||
return
|
return
|
||||||
@@ -322,4 +322,4 @@
|
|||||||
user << "<font color=green>Computer has been associated with this unit.</font>"
|
user << "<font color=green>Computer has been associated with this unit.</font>"
|
||||||
else
|
else
|
||||||
user << "<font color=red>No associated computer found. Only local scans will function properly.</font>"
|
user << "<font color=red>No associated computer found. Only local scans will function properly.</font>"
|
||||||
user << "\n"
|
user << "\n"
|
||||||
|
|||||||
9
html/changelogs/angeliteentyshak_baglabel.yml
Normal file
9
html/changelogs/angeliteentyshak_baglabel.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
author: Angelite Entyshak
|
||||||
|
|
||||||
|
delete-after: True
|
||||||
|
|
||||||
|
changes:
|
||||||
|
- tweak: You can now label evidence and sample bags with a pen.
|
||||||
|
- bugfix: Dialogue for library shelves now have a cancel button.
|
||||||
|
- bugfix: Kinda fixed Ctrl + Clicking for releasing a pulled object, it behaves slightly differently now. Ctrl + click something unmovable (the floor) or something out of range to stop pulling the object.
|
||||||
|
|
||||||
Reference in New Issue
Block a user