Skip to content

Commit

Permalink
Merge pull request #249 from She-Is-Trying-To-Form-Her-First-Thought/…
Browse files Browse the repository at this point in the history
…colonizer-9000

Moves some numbers around on colony stuff, and fixes the ore thumper
  • Loading branch information
Nerev4r authored Nov 25, 2024
2 parents 79ea4d0 + e0277bf commit a13f556
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
layer = ABOVE_MOB_LAYER
can_change_cable_layer = TRUE
/// How much power the turbine makes without a storm
var/regular_power_production = 2500
var/regular_power_production = 1 KILO WATTS
/// How much power the turbine makes during a storm
var/storm_power_production = 10000
var/storm_power_production = 5 KILO WATTS
/// Is our pressure too low to function?
var/pressure_too_low = FALSE
/// Minimum external pressure needed to work
Expand Down
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.
8 changes: 4 additions & 4 deletions 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 Expand Up @@ -243,10 +243,10 @@

for(var/iteration in 1 to rand(2, 4))
var/turf/target_turf = pick(nearby_valid_turfs)
// var/obj/item/stack/new_ore = pick_weight(ore_weight_list)
// var/obj/new_ore_pile = new new_ore(target_turf, ore_spawn_values[new_ore.type])
var/obj/item/stack/new_ore = pick_weight(ore_weight_list)
var/obj/new_ore_pile = new new_ore(target_turf, ore_spawn_values[new_ore.type])
new /obj/effect/temp_visual/mook_dust(target_turf)
// playsound(new_ore_pile, 'modular_nova/master_files/sound/effects/robot_sit.ogg', 25, TRUE) port tallborgs soon
playsound(new_ore_pile, 'modular_doppler/kahraman_equipment/sounds/tallborg_sitting_down.ogg', 25, TRUE)

slam_jams -= slam_jams_needed

Expand Down
Binary file not shown.

0 comments on commit a13f556

Please sign in to comment.