[MIRROR] Uses balloon alerts for mining messages instead of logged ones (#11605)

Co-authored-by: Jenny <ghosttehspychecka@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-09-10 14:33:27 -07:00
committed by GitHub
parent 6831b4cb49
commit 22b9e8550e

View File

@@ -526,7 +526,7 @@ var/list/mining_overlay_cache = list()
if(newDepth > F.excavation_required) // Digging too deep can break the item. At least you won't summon a Balrog (probably) if(newDepth > F.excavation_required) // Digging too deep can break the item. At least you won't summon a Balrog (probably)
fail_message = ". <b>[pick("There is a crunching noise","[W] collides with some different rock","Part of the rock face crumbles away","Something breaks under [W]")]</b>" fail_message = ". <b>[pick("There is a crunching noise","[W] collides with some different rock","Part of the rock face crumbles away","Something breaks under [W]")]</b>"
wreckfinds(P.destroy_artefacts) wreckfinds(P.destroy_artefacts)
to_chat(user, span_notice("You start [P.drill_verb][fail_message].")) user.balloon_alert(user, "you start [P.drill_verb][fail_message].")
if(do_after(user, P.digspeed, target = src)) if(do_after(user, P.digspeed, target = src))
@@ -537,7 +537,7 @@ var/list/mining_overlay_cache = list()
else if(newDepth > F.excavation_required) else if(newDepth > F.excavation_required)
excavate_find(prob(10), F) //A 1 in 10 chance to get it out perfectly seems fine if you're not being careful. excavate_find(prob(10), F) //A 1 in 10 chance to get it out perfectly seems fine if you're not being careful.
to_chat(user, span_notice("You finish [P.drill_verb] \the [src].")) user.balloon_alert(user, "you finish [P.drill_verb] \the [src].")
if(newDepth >= 200) // This means the rock is mined out fully if(newDepth >= 200) // This means the rock is mined out fully
if(P.destroy_artefacts) if(P.destroy_artefacts)