Retail Scanner QOL

Adjusts Size to fit in pocket
Fits in belt slot
Adds technology level for deconstructor (MT 1)
Ability to swipe when shown by show_held_item
This commit is contained in:
Hubblenaut
2016-03-07 18:00:53 +01:00
parent dc092aa348
commit 0a85f0c0fa
3 changed files with 18 additions and 5 deletions

View File

@@ -400,19 +400,19 @@
if(usr.stat) return
if(cash_locked)
usr << "<span class='warning'>The cash box is locked.</span>"
else if(cash_open)
if(cash_open)
cash_open = 0
overlays -= "register_approve"
overlays -= "register_open"
overlays -= "register_cash"
else
else if(!cash_locked)
cash_open = 1
overlays += "register_approve"
overlays += "register_open"
if(cash_stored)
overlays += "register_cash"
else
usr << "<span class='warning'>The cash box is locked.</span>"
/obj/machinery/cash_register/proc/toggle_anchors(obj/item/weapon/wrench/W, mob/user)

View File

@@ -3,8 +3,11 @@
desc = "Swipe your ID card to make purchases electronically."
icon = 'icons/obj/device.dmi'
icon_state = "retail_idle"
flags = NOBLUDGEON
flags = NOBLUDGEON|CONDUCT
slot_flags = SLOT_BELT
req_access = list(access_heads)
w_class = 2.0
origin_tech = list(TECH_MATERIAL = 1)
var/locked = 1
var/emagged = 0
@@ -139,6 +142,11 @@
scan_item_price(O)
/obj/item/device/retail_scanner/showoff(mob/user)
for (var/mob/M in view(user))
M.show_message("[user] holds up [src]. <a HREF=?src=\ref[M];clickitem=\ref[src]>Swipe card or item.</a>",1)
/obj/item/device/retail_scanner/proc/confirm(var/obj/item/I)
if(confirm_item == I)
return 1

View File

@@ -616,6 +616,11 @@
var/mob/M = locate(href_list["lookmob"])
src.examinate(M)
if (href_list["clickitem"])
var/obj/item/I = locate(href_list["clickitem"])
if(src.client)
src.ClickOn(I)
if (href_list["flavor_change"])
switch(href_list["flavor_change"])
if("done")