Skip to content

Commit

Permalink
ice ore spawns now
Browse files Browse the repository at this point in the history
  • Loading branch information
Thera-Pissed committed Nov 1, 2023
1 parent 386e79d commit 12d8d47
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions code/game/machinery/outpost_electrolyzer.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//allows production of hydrogen from ice chunks
#define MOLS_PER_ICE 50

/obj/machinery/mineral/electrolyzer_unloader
name = "ice unloading machine"
icon = 'icons/obj/machines/mining_machines.dmi'
Expand Down Expand Up @@ -132,14 +133,21 @@
pipe_flags = PIPING_ONE_PER_TURF | PIPING_DEFAULT_LAYER_ONLY
var/molstomakedebug //removewhendone


/obj/machinery/atmospherics/components/binary/electrolyzer_out/process_atmos()
update_parents()

/obj/machinery/atmospherics/components/binary/electrolyzer_out/proc/electrolyze_item(obj/item/I)
var/datum/gas_mixture/air1 = airs[1] //hydrogen out
var/datum/gas_mixture/air2 = airs[2] //oxygen out
var/obj/item/stack/ore/ice/S = I
var/molstomake = S.get_amount() * MOLS_PER_ICE
molstomakedebug = molstomake
air1.adjust_moles (GAS_HYDROGEN, molstomake)
air1.set_temperature (T20C)
air2.adjust_moles (GAS_O2, molstomake / 2)
air2.set_temperature (T20C)
update_parents()
/*
/obj/machinery/mineral/electrolyzer
name = "ice crusher"
Expand Down
8 changes: 4 additions & 4 deletions code/game/turfs/closed/minerals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@

/turf/closed/mineral/random
var/list/mineralSpawnChanceList = list(/obj/item/stack/ore/uranium = 5, /obj/item/stack/ore/diamond = 1, /obj/item/stack/ore/gold = 10,
/obj/item/stack/ore/silver = 12, /obj/item/stack/ore/plasma = 20, /obj/item/stack/ore/iron = 40, /obj/item/stack/ore/titanium = 11,
/obj/item/stack/ore/silver = 12, /obj/item/stack/ore/plasma = 20, /obj/item/stack/ore/iron = 40, /obj/item/stack/ore/titanium = 11, /obj/item/stack/ore/ice = 15,
/turf/closed/mineral/gibtonite = 4, /obj/item/stack/ore/bluespace_crystal = 1)
//Currently, Adamantine won't spawn as it has no uses. -Durandan
var/mineralChance = 13
Expand Down Expand Up @@ -255,7 +255,7 @@

mineralSpawnChanceList = list(
/obj/item/stack/ore/uranium = 5, /obj/item/stack/ore/diamond = 1, /obj/item/stack/ore/gold = 10, /obj/item/stack/ore/titanium = 11,
/obj/item/stack/ore/silver = 12, /obj/item/stack/ore/plasma = 20, /obj/item/stack/ore/iron = 40,
/obj/item/stack/ore/silver = 12, /obj/item/stack/ore/plasma = 20, /obj/item/stack/ore/iron = 40, /obj/item/stack/ore/ice = 10,
/turf/closed/mineral/gibtonite/ice/icemoon = 4, /obj/item/stack/ore/bluespace_crystal = 1)

/turf/closed/mineral/ice
Expand All @@ -273,15 +273,15 @@
opacity = FALSE
light_range = 2
light_power = 1

mineralSpawnChanceList = list(/obj/item/stack/ore/ice = 15)

/turf/closed/mineral/random/snow/underground

Check failure on line 278 in code/game/turfs/closed/minerals.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var 'mineralSpawnChanceList' on type '/turf/closed/mineral/ice'
baseturfs = /turf/open/floor/plating/asteroid/snow/icemoon
// abundant ore
mineralChance = 20
mineralSpawnChanceList = list(
/obj/item/stack/ore/uranium = 10, /obj/item/stack/ore/diamond = 4, /obj/item/stack/ore/gold = 20, /obj/item/stack/ore/titanium = 22,
/obj/item/stack/ore/silver = 24, /obj/item/stack/ore/plasma = 20, /obj/item/stack/ore/iron = 20, /obj/item/stack/ore/bananium = 1,
/obj/item/stack/ore/silver = 24, /obj/item/stack/ore/plasma = 20, /obj/item/stack/ore/iron = 20, /obj/item/stack/ore/bananium = 1, /obj/item/stack/ore/ice = 10,
/turf/closed/mineral/gibtonite/ice/icemoon = 8, /obj/item/stack/ore/bluespace_crystal = 2)

/turf/closed/mineral/random/snow/high_chance
Expand Down

0 comments on commit 12d8d47

Please sign in to comment.