Skip to content

Commit

Permalink
Make pottery mould damage check work_skill
Browse files Browse the repository at this point in the history
  • Loading branch information
out-of-phaze committed Apr 23, 2024
1 parent 4f02a5c commit 2dacbef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/modules/crafting/pottery/pottery_moulds.dm
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@
if(!squash_item())
physically_destroyed(src)
else
take_damage(rand(10, 20))
// At skill 1/5, damage it 3x more. At skill 2/5, damage it 1.5x more.
// At skill 3/5 deal base damage, at 4/5 deal 75% damage, and at max skill deal 60% damage.
var/damage_modifier = clamp(1 + (user.get_skill_value(work_skill) - SKILL_ADEPT) / (SKILL_MAX - SKILL_BASIC), 0.1, 3)
take_damage(rand(5, 10) / damage_modifier)

/obj/item/chems/mould/proc/try_take_impression(mob/user, obj/item/thing)

Expand Down

0 comments on commit 2dacbef

Please sign in to comment.