mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 13:30:42 +01:00
Mining Points Carryover (#22941)
* Mining points now carry over between rounds for each character. * Mining point carryover is capped at 15,000 points and expires after one week of inactivity. AI usage disclosure: The code for this was created in-part using GPT 5.6 Sol.
This commit is contained in:
@@ -189,7 +189,7 @@
|
||||
if(ID)
|
||||
if(params["choice"] == "claim")
|
||||
if(points >= 0)
|
||||
ID.mining_points += points
|
||||
ID.adjust_mining_points(points)
|
||||
if(points != 0)
|
||||
ping("<b>\The [src]</b> pings, \"Point transfer complete! Transaction total: [points] points!\"")
|
||||
var/character_id = astype(ID.mob_id.resolve(), /mob/living/carbon/human/)?.character_id
|
||||
|
||||
@@ -148,12 +148,12 @@ GLOBAL_LIST_INIT(minevendor_list, list(
|
||||
if(prize.cost <= ID.mining_points)
|
||||
if(prize.shuttle)
|
||||
if(SScargo.order_mining(prize.equipment_path))
|
||||
ID.mining_points -= prize.cost
|
||||
ID.adjust_mining_points(-prize.cost)
|
||||
to_chat(usr, SPAN_NOTICE("Order passed. Your order has been placed on the next available supply shuttle."))
|
||||
else
|
||||
to_chat(usr, SPAN_DANGER("{ERR Code: NO_SHUTTLE_SPACE} Order failed! Please try again."))
|
||||
else
|
||||
ID.mining_points -= prize.cost
|
||||
ID.adjust_mining_points(-prize.cost)
|
||||
if(prize.amount != -1)
|
||||
prize.amount--
|
||||
new prize.equipment_path(get_turf(src))
|
||||
|
||||
@@ -868,7 +868,7 @@
|
||||
if(istype(attacking_item, /obj/item/card/id))
|
||||
if(points)
|
||||
var/obj/item/card/id/C = attacking_item
|
||||
C.mining_points += points
|
||||
C.adjust_mining_points(points)
|
||||
to_chat(user, SPAN_INFO("You transfer [points] points to \the [C]."))
|
||||
points = 0
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user