This commit is contained in:
lolman360
2020-08-24 00:26:26 +10:00
parent ccf8aaf412
commit cdc7490ee1
2 changed files with 3 additions and 5 deletions

View File

@@ -147,14 +147,13 @@
stepsdone += "u"
currentsteps += 1
currentquality -= 1
to_chat(user, "You [stepdone] the metal.")
to_chat(user, stepsdone)
to_chat(user, "<span class='notice'?You [stepdone] the metal.</span>")
if(length(stepsdone) >= 3)
tryfinish(user)
/obj/structure/anvil/proc/tryfinish(mob/user)
if(currentsteps > 10 || (rng && prob(outrightfailchance)))
to_chat(user, "You overwork the metal, causing it to turn into useless slag!")
to_chat(user, "<span class='warning'?You overwork the metal, causing it to turn into useless slag!</span>")
var/turf/T = get_turf(user)
workpiece_state = FALSE
new /obj/item/stack/ore/slag(T)
@@ -164,8 +163,6 @@
outrightfailchance = 1
if(user.mind.skill_holder)
user.mind.auto_gain_experience(/datum/skill/level/dorfy/blacksmithing, 25, 400, silent = FALSE)
for(var/i in smithrecipes)
to_chat(user, "comparing [i] to [stepsdone]")
if(i == stepsdone)
var/turf/T = get_turf(user)
var/obj/item/smithing/create = smithrecipes[stepsdone]

View File

@@ -377,6 +377,7 @@
finalforreal.wield_force = finalforreal.force*finalforreal.wielded_mult
finalforreal.AddComponent(/datum/component/two_handed, force_unwielded=finalforreal.force, force_wielded=finalforreal.wield_force, icon_wielded="[icon_state]")
finalitem = finalforreal
..()
/obj/item/stick
name = "wooden rod"