Clockwork generators

TODO: get it to stop dividing by zero for power production and fuel usage, make it generate power.
This commit is contained in:
Dan-Neposh
2020-10-28 08:44:42 -04:00
parent 15136717de
commit 8fe7c23766
9 changed files with 36 additions and 1 deletions
@@ -23,6 +23,14 @@
end_sound = 'sound/machines/generator/generator_end.ogg'
volume = 40
datum/looping_sound/generator/clockwork
start_sound = 'sound/machines/generator/clockwork/clockwork_gen_start.ogg'
start_length = 10
mid_sounds = 'sound/machines/generator/clockwork/clockwork_gen_mid.ogg'
mid_length = 10
end_sound = 'sound/machines/generator/clockwork/clockwork_gen_end.ogg'
volume = 65
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -84,6 +84,16 @@
name = "clockwork board (Report This)"
icon_state = "clock_mod"
/obj/item/circuitboard/machine/clockwork/generator
name = "clockwork generator (machine board)"
icon_state = "clock_mod"
build_path = /obj/machinery/power/port_gen/pacman/clockwork
req_components = list(
/obj/item/clockwork/component/replicant_alloy = 1,
/obj/item/clockwork/component/vanguard_cogwheel = 3,
/obj/item/clockwork/component/geis_capacitor = 2,
/obj/item/stack/tile/brass = 5)
/obj/item/circuitboard/machine/clonescanner
name = "Cloning Scanner (Machine Board)"
build_path = /obj/machinery/dna_scannernew
@@ -629,6 +629,7 @@ GLOBAL_LIST_INIT(brass_recipes, list ( \
new/datum/stack_recipe("brass table frame", /obj/structure/table_frame/brass, 1, time = 5, one_per_turf = TRUE, on_floor = TRUE), \
new/datum/stack_recipe("brass anvil", /obj/structure/anvil/obtainable/ratvar, 10, time = 15, one_per_turf = TRUE, on_floor = TRUE), \
new/datum/stack_recipe("brass furnace", /obj/structure/furnace/infinite/ratvar, 10, time = 15, one_per_turf = TRUE, on_floor = TRUE), \
new/datum/stack_recipe("clockwork generator", /obj/machinery/power/port_gen/pacman/clockwork, 15, time = 20, one_per_turf = TRUE, on_floor = TRUE), \
null, \
new/datum/stack_recipe("sender - pressure sensor", /obj/structure/destructible/clockwork/trap/trigger/pressure_sensor, 2, time = 20, one_per_turf = TRUE, on_floor = TRUE), \
new/datum/stack_recipe("sender - mech sensor", /obj/structure/destructible/clockwork/trap/trigger/pressure_sensor/mech, 2, time = 20, one_per_turf = TRUE, on_floor = TRUE), \
+15
View File
@@ -286,3 +286,18 @@
/obj/machinery/power/port_gen/pacman/mrs/overheat()
explosion(src.loc, 4, 4, 4, -1)
////////////////
// CLOCKWORK //
//////////////
/obj/machinery/power/port_gen/pacman/clockwork
name = "clockwork generator"
base_icon = "clockgen"
icon_state = "clockgen_0"
circuit = /obj/item/circuitboard/machine/clockwork/generator
max_sheets = 100
power_gen = 2500
sheet_path = /obj/item/stack/tile/brass
time_per_sheet = 260
/datum/looping_sound/generator/clockwork/soundloop
Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 36 KiB

+2 -1
View File
@@ -1570,7 +1570,6 @@
#include "code\modules\antagonists\clockcult\clock_helpers\component_helpers.dm"
#include "code\modules\antagonists\clockcult\clock_helpers\fabrication_helpers.dm"
#include "code\modules\antagonists\clockcult\clock_helpers\hierophant_network.dm"
#include "code\modules\antagonists\clockcult\clock_helpers\leader_helpers.dm"
#include "code\modules\antagonists\clockcult\clock_helpers\power_helpers.dm"
#include "code\modules\antagonists\clockcult\clock_helpers\ratvarian_language.dm"
#include "code\modules\antagonists\clockcult\clock_helpers\scripture_checks.dm"
@@ -1600,6 +1599,8 @@
#include "code\modules\antagonists\clockcult\clock_structures\_trap_object.dm"
#include "code\modules\antagonists\clockcult\clock_structures\ark_of_the_clockwork_justicar.dm"
#include "code\modules\antagonists\clockcult\clock_structures\clockwork_obelisk.dm"
#include "code\modules\antagonists\clockcult\clock_structures\eminence_spire.dm"
#include "code\modules\antagonists\clockcult\clock_structures\heralds_beacon.dm"
#include "code\modules\antagonists\clockcult\clock_structures\mania_motor.dm"
#include "code\modules\antagonists\clockcult\clock_structures\ocular_warden.dm"
#include "code\modules\antagonists\clockcult\clock_structures\prolonging_prism.dm"