Skip to content

Commit

Permalink
improve speed weld geotermal generation (#568)
Browse files Browse the repository at this point in the history
* improve

* fix

* Update groundmap_geothermal.dm

Signed-off-by: Kirill <[email protected]>

---------

Signed-off-by: Kirill <[email protected]>
  • Loading branch information
Tatarla authored Oct 18, 2024
1 parent 8de41be commit ab8c856
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions code/modules/power/groundmap_geothermal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,8 @@ GLOBAL_VAR_INIT(generators_on_ground, 0)
if(user.skills.getRating(SKILL_ENGINEER) < SKILL_ENGINEER_ENGI)
user.visible_message(span_notice("[user] fumbles around figuring out the resin tendrils on [src]."),
span_notice("You fumble around figuring out the resin tendrils on [src]."))
var/fumbling_time = 10 SECONDS - 2 SECONDS * user.skills.getRating(SKILL_ENGINEER)
if(!do_after(user, fumbling_time, NONE, src, BUSY_ICON_UNSKILLED, extra_checks = CALLBACK(WT, /obj/item/tool/weldingtool/proc/isOn)))
return
if(!do_after(user, 10 SECONDS - (user.skills.getRating(SKILL_ENGINEER) * 2 SECONDS), NONE, src, BUSY_ICON_UNSKILLED, extra_checks = CALLBACK(WT, /obj/item/tool/weldingtool/proc/isOn)) || is_on)
return FALSE

if(!WT.remove_fuel(1, user))
to_chat(user, span_warning("You need more welding fuel to complete this task."))
Expand All @@ -252,7 +251,7 @@ GLOBAL_VAR_INIT(generators_on_ground, 0)
span_notice("You carefully start burning [src]'s resin off."))
add_overlay(GLOB.welding_sparks)

if(!do_after(user, 20 SECONDS, NONE, src, BUSY_ICON_BUILD, extra_checks = CALLBACK(WT, /obj/item/tool/weldingtool/proc/isOn)))
if(!do_after(user, 20 SECONDS - (user.skills.getRating(SKILL_ENGINEER) * 3 SECONDS) , NONE, src, BUSY_ICON_BUILD, extra_checks = CALLBACK(WT, /obj/item/tool/weldingtool/proc/isOn)))
cut_overlay(GLOB.welding_sparks)
return FALSE

Expand Down Expand Up @@ -280,7 +279,7 @@ GLOBAL_VAR_INIT(generators_on_ground, 0)
span_notice("You start welding [src]'s internal damage."))
add_overlay(GLOB.welding_sparks)

if(!do_after(user, 20 SECONDS, NONE, src, BUSY_ICON_BUILD, extra_checks = CALLBACK(WT, /obj/item/tool/weldingtool/proc/isOn)) || buildstate != GEOTHERMAL_HEAVY_DAMAGE || is_on)
if(!do_after(user, 20 SECONDS - (user.skills.getRating(SKILL_ENGINEER) * 3 SECONDS) , NONE, src, BUSY_ICON_BUILD, extra_checks = CALLBACK(WT, /obj/item/tool/weldingtool/proc/isOn)) || buildstate != GEOTHERMAL_HEAVY_DAMAGE || is_on)
cut_overlay(GLOB.welding_sparks)
return FALSE

Expand Down

0 comments on commit ab8c856

Please sign in to comment.