mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 16:12:19 +00:00
* I wanna set the universe on fire * dfsaaf * setup * dir issue? * dsf * Perhaps the script * saf * cry * pain * sdfas * Try reintroduction of tag-matcher * Failed * Tries to suppress dotnet compile warnings * Like this maybe? * woopsie * Damn pathings * Hate * Pragmas * unlint? * Maybe? * GDI * Redundant ifdef removed and changelog * Did I forgot the tag matcher, or it was still broken? * Yea no that script is still broken * Removed tag-matcher as requested * *sigh* * test * bro what? * hope * just fixing the input * Let's see if we catch it...
23 lines
883 B
Plaintext
23 lines
883 B
Plaintext
/obj/item/export_scanner
|
|
name = "export scanner"
|
|
desc = "A device used to check objects against NanoTrasen exports and bounty database."
|
|
icon = 'icons/obj/device.dmi'
|
|
icon_state = "price_scanner"
|
|
slot_flags = SLOT_BELT
|
|
item_flags = NOBLUDGEON
|
|
w_class = ITEMSIZE_SMALL
|
|
siemens_coefficient = 1
|
|
|
|
/obj/item/export_scanner/afterattack(obj/O, mob/user, proximity)
|
|
. = ..()
|
|
if(!istype(O) || !proximity)
|
|
return
|
|
|
|
var/price = SScargo.export_item_and_contents(O, FALSE, FALSE, dry_run=TRUE)
|
|
if(price)
|
|
to_chat(user, "<span class='notice'>Scanned [O], value: <b>[price]</b> credits[O.contents.len ? " (contents included)" : ""].</span>")
|
|
else
|
|
to_chat(user, "<span class='warning'>Scanned [O], no export value.</span>")
|
|
if(SScargo.bounty_ship_item_and_contents(O, dry_run=TRUE))
|
|
to_chat(user, "<span class='notice'>Scanned item is eligible for one or more bounties.</span>")
|