Skip to content

Commit

Permalink
Update stack.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Helg2 committed Aug 28, 2024
1 parent 6ec0552 commit 88ac535
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/game/objects/items/stacks/stack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@
return
if(user.do_actions)
return
var/building_time = R.time
if(R.skill_req && user.skills.getRating(SKILL_CONSTRUCTION) < R.skill_req)
building_time += R.time * ( R.skill_req - user.skills.getRating(SKILL_CONSTRUCTION) ) * 0.5 // +50% time each skill point lacking.
if(R.skill_req && user.skills.getRating(SKILL_CONSTRUCTION) > R.skill_req)
building_time -= clamp(R.time * ( user.skills.getRating(SKILL_CONSTRUCTION) - R.skill_req ) * 0.40, 0 , 0.85 * building_time) // -40% time each extra skill point
var/building_time = recipe.time
if(recipe.skill_req && user.skills.getRating(SKILL_CONSTRUCTION) < recipe.skill_req)
building_time += recipe.time * (recipe.skill_req - user.skills.getRating(SKILL_CONSTRUCTION)) * 0.5 // +50% time each skill point lacking.
if(recipe.skill_req && user.skills.getRating(SKILL_CONSTRUCTION) > recipe.skill_req)
building_time -= clamp(recipe.time * (user.skills.getRating(SKILL_CONSTRUCTION) - recipe.skill_req) * 0.40, 0 , 0.85 * building_time) // -40% time each extra skill point
if(building_time)
balloon_alert_to_viewers("building [recipe.title]")
if(!do_after(user, building_time, NONE, src, (building_time > recipe.time ? BUSY_ICON_UNSKILLED : BUSY_ICON_BUILD)))
Expand Down

0 comments on commit 88ac535

Please sign in to comment.