mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 23:52:12 +00:00
Removes mining access requirement from ore redemption consoles (#17714)
* Removes mining access requirement from ore redemption consoles The claim points and print yield declarations required mining access to use despite the actual functionality of the console requiring no access. I've removed this access requirement so off-ships with these machines can actually use them. * Update code/modules/mining/machine_processing.dm Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com> * Update code/modules/mining/machine_processing.dm Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com> --------- Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>
This commit is contained in:
@@ -123,21 +123,15 @@
|
||||
var/obj/item/card/id/ID = usr.GetIdCard()
|
||||
if(ID)
|
||||
if(params["choice"] == "claim")
|
||||
if(access_mining_station in ID.access)
|
||||
if(points >= 0)
|
||||
ID.mining_points += points
|
||||
if(points != 0)
|
||||
ping("\The [src] pings, \"Point transfer complete! Transaction total: [points] points!\"")
|
||||
points = 0
|
||||
else
|
||||
to_chat(usr, SPAN_WARNING("[station_name()]'s mining division is currently indebted to NanoTrasen. Transaction incomplete until debt is cleared."))
|
||||
if(points >= 0)
|
||||
ID.mining_points += points
|
||||
if(points != 0)
|
||||
ping("<b>\The [src]</b> pings, \"Point transfer complete! Transaction total: [points] points!\"")
|
||||
points = 0
|
||||
else
|
||||
to_chat(usr, SPAN_WARNING("Required access not found."))
|
||||
ping("<b>\The [src]</b> pings, \"Transaction failed due to a negative point value. No transaction can be done until this value has returned to a positive one.\"")
|
||||
if(params["choice"] == "print_report")
|
||||
if(access_mining_station in ID.access)
|
||||
print_report(usr)
|
||||
else
|
||||
to_chat(usr, SPAN_WARNING("Required access not found."))
|
||||
print_report(usr)
|
||||
return TRUE
|
||||
|
||||
if(action == "toggle_smelting")
|
||||
|
||||
Reference in New Issue
Block a user