Skip to content

Commit

Permalink
other stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Paxilmaniac committed Nov 25, 2024
1 parent 50a9680 commit ee42b3f
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 31 deletions.
9 changes: 0 additions & 9 deletions modular_doppler/colony_fabricator/code/colony_fabricator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,16 @@
allowed_buildtypes = COLONY_FABRICATOR
/// The item we turn into when repacked
var/repacked_type = /obj/item/flatpacked_machine
/// The sound loop played while the fabricator is making something
var/datum/looping_sound/colony_fabricator_running/soundloop

/obj/machinery/rnd/production/colony_lathe/Initialize(mapload)
. = ..()
AddElement(/datum/element/repackable, repacked_type, 5 SECONDS)
AddElement(/datum/element/manufacturer_examine, COMPANY_FRONTIER)
// We don't get new designs but can't print stuff if something's not researched, so we use the web that has everything researched
stored_research = locate(/datum/techweb/admin) in SSresearch.techwebs
soundloop = new(src, FALSE)
if(!mapload)
flick("colony_lathe_deploy", src) // Sick ass deployment animation

/obj/machinery/rnd/production/colony_lathe/Destroy()
QDEL_NULL(soundloop)
return ..()

// formerly NO_DECONSTRUCTION
/obj/machinery/rnd/production/colony_lathe/default_deconstruction_screwdriver(mob/user, icon_state_open, icon_state_closed, obj/item/screwdriver)
return NONE
Expand All @@ -45,14 +38,12 @@
return

/obj/machinery/rnd/production/colony_lathe/start_printing_visuals()
soundloop.start()
set_light(l_range = 1.5)
icon_state = "colony_lathe_working"
update_appearance()

/obj/machinery/rnd/production/colony_lathe/finalize_build()
. = ..()
soundloop.stop()
set_light(l_range = 0)
icon_state = base_icon_state
update_appearance()
Expand Down
14 changes: 0 additions & 14 deletions modular_doppler/colony_fabricator/code/looping_sounds.dm
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
/datum/looping_sound/colony_fabricator_running
start_sound = 'modular_doppler/colony_fabricator/sounds/fabricator/fabricator_start.wav'
start_length = 1
mid_sounds = list(
'modular_doppler/colony_fabricator/sounds/fabricator/fabricator_mid_1.wav' = 1,
'modular_doppler/colony_fabricator/sounds/fabricator/fabricator_mid_2.wav' = 1,
'modular_doppler/colony_fabricator/sounds/fabricator/fabricator_mid_3.wav' = 1,
'modular_doppler/colony_fabricator/sounds/fabricator/fabricator_mid_4.wav' = 1,
)
mid_length = 3 SECONDS
end_sound = 'modular_doppler/colony_fabricator/sounds/fabricator/fabricator_end.wav'
volume = 100
falloff_exponent = 3

/datum/looping_sound/arc_furnace_running
mid_sounds = list(
'modular_doppler/colony_fabricator/sounds/arc_furnace/arc_furnace_mid_1.wav' = 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
return

/obj/machinery/power/solar/deployable/on_deconstruction(disassembled)
var/obj/item/solar_assembly/assembly = locate() in src
var/obj/item/solar_assembly/assembly = locate() in contents
if(assembly)
qdel(assembly)
return ..()
Expand Down Expand Up @@ -69,7 +69,7 @@
return NONE

/obj/machinery/power/tracker/deployable/on_deconstruction(disassembled)
var/obj/item/solar_assembly/assembly = locate() in src
var/obj/item/solar_assembly/assembly = locate() in contents
if(assembly)
qdel(assembly)
return ..()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
anchored = TRUE
max_sheets = 25
time_per_sheet = parent_type::time_per_sheet * (5 / 3) //66.6% better
power_gen = parent_type::power_gen * 2.5
power_gen = 10 KILO JOULES
drag_slowdown = 1.5
sheet_path = /obj/item/stack/sheet/mineral/plasma
/// The item we turn into when repacked
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/// What this thing deconstructs into
var/deconstruction_type = /obj/item/flatpacked_machine/stirling_generator
/// Maximum efficient heat difference, at what heat difference does more difference stop meaning anything for power?
var/max_efficient_heat_difference = 8000
var/max_efficient_heat_difference = 6000
/// Maximum power output from this machine
var/max_power_output = 100 KILO WATTS
/// How much power the generator is currently making
Expand Down
3 changes: 0 additions & 3 deletions modular_doppler/colony_fabricator/sounds/attributions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ a contributor who no longer wishes to be named
specifically for free open source use from the novasector codebase, so don't worry about it.

modular_doppler/colony_fabricator/sound/arc_furnace/arc_furnace_mid_(1 - 4).wav
modular_doppler/colony_fabricator/sound/fabricator/fabricator_mid_(1 - 4).wav
modular_doppler/colony_fabricator/sound/fabricator/fabricator_end.wav
modular_doppler/colony_fabricator/sound/fabricator/fabricator_start.wav

The following sounds are from https://pixabay.com/sound-effects/wall-air-conditioner-43901/

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion modular_doppler/kahraman_equipment/code/ore_thumper.dm
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
if(!istype(get_turf(src), /turf/open/misc))
. += span_notice("It must be constructed on <b>suitable terrain</b>, like ash, snow, or sand.")
. += span_notice("It must have a powered, <b>wired connection</b> running beneath it with <b>[display_power(active_power_usage, convert = FALSE)]</b> of excess power to function.")
. += span_notice("It will produce a box of materials after it has slammed [slam_jams_needed] times.")
. += span_notice("It will produce materials after it has slammed [slam_jams_needed] times.")
. += span_notice("Currently, it has slammed [slam_jams] / [slam_jams_needed] times needed.")
. += span_notice("It will stop producing resources if there are <b>too many piles of ore</b> near it.")
. += span_notice("The thumper cannot work if it is <b>too close to another thumper</b>, needing <b>at least [ore_spawn_range] spaces</b> in all directions between it another thumper.")
Expand Down

0 comments on commit ee42b3f

Please sign in to comment.