-
-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removes atmos cooling. beginning of game-magic cooling
- Loading branch information
1 parent
4d7ad96
commit a5020e6
Showing
2 changed files
with
30 additions
and
6 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
22 changes: 22 additions & 0 deletions
22
nsv13/code/modules/munitions/ship_weapons/energy_weapons/subspacecooling.dm
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,22 @@ | ||
/obj/machinery/cooling | ||
name = "subspace cooling unit" | ||
desc = "A cooling unit that dumps the massive amounts of heat energy weapons generate into subspace." | ||
icon ='nsv13/icons/obj/energy_weapons.dmi' | ||
icon_state = "phase_cannon" | ||
circuit = /obj/item/circuitboard/machine/burst_phaser | ||
bound_width = 32 | ||
pixel_x = -32 | ||
pixel_y = -32 | ||
idle_power_usage = 2000 | ||
var/active = FALSE | ||
var/obj/ship_weapons/energy/parent | ||
|
||
|
||
/obj/machinery/cooling/Initialize(mapload) | ||
= ..() | ||
parent = locate(/obj/ship_weapons/energy) in orange(1, src) | ||
|
||
/obj/machinery/cooling/process(delta_time) | ||
= ..() | ||
if(parent.heat > 0) | ||
parent.heat = max(parent.heat-50, 0) |