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:
Geeves
2026-08-02 01:24:37 +00:00
committed by GitHub
parent 13beeb437a
commit 958a54adaa
8 changed files with 47 additions and 4 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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))
+1 -1
View File
@@ -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