-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tesla coil input multiplier balance (#2038)
zappy bois input multiplier
- Loading branch information
1 parent
d61b324
commit d35aec9
Showing
3 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/obj/machinery/power/energy_accumulator/tesla_coil/RefreshParts() | ||
. = ..() | ||
var/new_power_multiplier = 0.44 | ||
zap_cooldown = 10 SECONDS | ||
for(var/datum/stock_part/capacitor/capacitor in component_parts) | ||
new_power_multiplier += capacitor.tier * 0.12 | ||
zap_cooldown -= (capacitor.tier * 2 SECONDS) | ||
|
||
input_power_multiplier = clamp(new_power_multiplier, 0.44, 0.92) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters