Reduce mining message spam. (#12145)

This commit is contained in:
Allspice
2016-10-11 14:16:59 -07:00
committed by clusterfack
parent 2ae9a02e8f
commit 4089c8ef7d
2 changed files with 11 additions and 7 deletions

View File

@@ -255,15 +255,14 @@ turf/unsimulated/mineral/ChangeTurf(var/turf/N, var/tell_universe=1, var/force_l
playsound(user, P.drill_sound, 20, 1) playsound(user, P.drill_sound, 20, 1)
//handle any archaeological finds we might uncover
var/fail_message = "" var/fail_message = ""
//handle any archaeological finds we might uncover
if(finds && finds.len) if(finds && finds.len)
var/datum/find/F = finds[1] var/datum/find/F = finds[1]
if(excavation_level + P.excavation_amount > F.excavation_required) if(excavation_level + P.excavation_amount > F.excavation_required)
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>" to_chat(user, "<span class='rose'>[fail_message].</span>")
to_chat(user, "<span class='rose'>You start [P.drill_verb][fail_message].</span>")
if(fail_message && prob(90)) if(fail_message && prob(90))
if(prob(5)) if(prob(5))
@@ -276,8 +275,6 @@ turf/unsimulated/mineral/ChangeTurf(var/turf/N, var/tell_universe=1, var/force_l
busy = 1 busy = 1
if(do_after(user, src, P.digspeed) && user) if(do_after(user, src, P.digspeed) && user)
to_chat(user, "<span class='notice'>You finish [P.drill_verb] the rock.</span>")
busy = 0 busy = 0
if(finds && finds.len) if(finds && finds.len)

View File

@@ -0,0 +1,7 @@
author: Kavlax
delete-after: True
changes:
- rscadd: "Reduce mining message spam."