Xenoarch fix

Fixes the bug in xenoarchaeology where there was a significant chance an artifact would break or come out as a strange rock, even when you did everything correctly. Now that only happens if you did the excavation wrong.
This commit is contained in:
PrismaticGynoid
2020-03-12 12:25:41 -07:00
parent 3314d865bd
commit eb3c301851
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -416,7 +416,7 @@ turf/simulated/mineral/floor/light_corner
var/datum/find/F = finds[1]
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>"
wreckfinds(P.destroy_artefacts)
wreckfinds(P.destroy_artefacts)
to_chat(user, "<span class='notice'>You start [P.drill_verb][fail_message].</span>")
if(do_after(user,P.digspeed))