diff --git a/baystation12.dme b/baystation12.dme index 627b48fb13b..545823586c1 100644 --- a/baystation12.dme +++ b/baystation12.dme @@ -165,6 +165,7 @@ #define FILE_DIR "code/WorkInProgress/Apples" #define FILE_DIR "code/WorkInProgress/Cael_Aislinn" #define FILE_DIR "code/WorkInProgress/Cael_Aislinn/BirdMan" +#define FILE_DIR "code/WorkInProgress/Cael_Aislinn/Jumper" #define FILE_DIR "code/WorkInProgress/Cael_Aislinn/Rust" #define FILE_DIR "code/WorkInProgress/Cael_Aislinn/Supermatter" #define FILE_DIR "code/WorkInProgress/Cael_Aislinn/Tajara" @@ -203,6 +204,7 @@ #define FILE_DIR "icons/vending_icons" #define FILE_DIR "interface" #define FILE_DIR "maps" +#define FILE_DIR "maps/backup" #define FILE_DIR "maps/RandomZLevels" #define FILE_DIR "sound" #define FILE_DIR "sound/AI" @@ -1146,6 +1148,7 @@ #include "code\WorkInProgress\buildmode.dm" #include "code\WorkInProgress\explosion_particles.dm" #include "code\WorkInProgress\animusstation\atm.dm" +#include "code\WorkInProgress\Cael_Aislinn\power_monitor.dm" #include "code\WorkInProgress\Cael_Aislinn\BirdMan\bird_transformation.dm" #include "code\WorkInProgress\Cael_Aislinn\BirdMan\birdman.dm" #include "code\WorkInProgress\Cael_Aislinn\Rust\core_field.dm" @@ -1204,5 +1207,5 @@ #include "code\WorkInProgress\Wrongnumber\weldbackpack.dm" #include "interface\interface.dm" #include "interface\skin.dmf" -#include "maps\tgstation.2.0.8.dmm" +#include "maps\Antiqua.dmm" // END_INCLUDE diff --git a/code/WorkInProgress/Cael_Aislinn/Rust/core_field.dm b/code/WorkInProgress/Cael_Aislinn/Rust/core_field.dm index 321b835209f..ad6a754ba78 100644 --- a/code/WorkInProgress/Cael_Aislinn/Rust/core_field.dm +++ b/code/WorkInProgress/Cael_Aislinn/Rust/core_field.dm @@ -131,7 +131,7 @@ Deuterium-tritium fusion: 4.5 x 10^7 K radiation = 0 //update values - var/transfer_ratio = 50 / field_strength + var/transfer_ratio = field_strength / 50 major_radius = field_strength * 0.21875// max = 8.75 minor_radius = field_strength * 0.2125// max = 8.625 volume_covered = PI * major_radius * minor_radius * 2.5 * 2.5 * 2.5 * 7 * 7 * transfer_ratio @@ -159,10 +159,12 @@ Deuterium-tritium fusion: 4.5 x 10^7 K var/datum/gas_mixture/plasma_captured = new /datum/gas_mixture() // plasma_captured.toxins = round(gas_covered.toxins * transfer_ratio) + //world << "\blue[plasma_captured.toxins] moles of plasma captured" plasma_captured.temperature = gas_covered.temperature + //plasma_captured.update_values() gas_covered.toxins -= plasma_captured.toxins - plasma_captured.update_values() - gas_covered.update_values() + //gas_covered.update_values() + // held_plasma.merge(plasma_captured) // environment.merge(gas_covered) @@ -187,7 +189,25 @@ Deuterium-tritium fusion: 4.5 x 10^7 K //if there is too much plasma in the field, lose some /*if( held_plasma.toxins > (MOLES_CELLSTANDARD * 7) * (50 / field_strength) ) LosePlasma()*/ - LosePlasma() + if(held_plasma.toxins > 1) + //lose a random amount of plasma back into the air, increased by the field strength (want to switch this over to frequency eventually) + var/loss_ratio = rand() * (0.05 + (0.05 * 50 / field_strength)) + //world << "lost [loss_ratio*100]% of held plasma" + // + var/datum/gas_mixture/plasma_lost = new + plasma_lost.temperature = held_plasma.temperature + // + plasma_lost.toxins = held_plasma.toxins * loss_ratio + //plasma_lost.update_values() + held_plasma.toxins -= held_plasma.toxins * loss_ratio + //held_plasma.update_values() + // + environment.merge(plasma_lost) + radiation += loss_ratio * mega_energy * 0.1 + mega_energy -= loss_ratio * mega_energy * 0.1 + else + held_plasma.toxins = 0 + //held_plasma.update_values() //handle some reactants formatting //helium-4 has no use at the moment, but a buttload of it is produced @@ -293,30 +313,6 @@ Deuterium-tritium fusion: 4.5 x 10^7 K catcher.UpdateSize() return changed - proc/LosePlasma() - if(held_plasma.toxins > 1) - //lose a random amount of plasma back into the air, increased by the field strength (want to switch this over to frequency eventually) - var/datum/gas_mixture/environment = loc.return_air() - var/loss_ratio = rand() * (0.05 + (0.05 * 50 / field_strength)) - //world << "lost [loss_ratio*100]% of held plasma" - // - var/datum/gas_mixture/plasma_lost = new - plasma_lost.temperature = held_plasma.temperature - // - plasma_lost.toxins = held_plasma.toxins * loss_ratio - plasma_lost.update_values() - held_plasma.toxins -= held_plasma.toxins * loss_ratio - held_plasma.update_values() - // - environment.merge(plasma_lost) - radiation += loss_ratio * mega_energy * 0.1 - mega_energy -= loss_ratio * mega_energy * 0.1 - return 1 - else - held_plasma.toxins = 0 - held_plasma.update_values() - return 0 - //the !!fun!! part //reactions have to be individually hardcoded, see AttemptReaction() below this proc/React() diff --git a/code/WorkInProgress/Cael_Aislinn/Rust/fuel_injector.dm b/code/WorkInProgress/Cael_Aislinn/Rust/fuel_injector.dm index 91c35089c2c..da06f39cca2 100644 --- a/code/WorkInProgress/Cael_Aislinn/Rust/fuel_injector.dm +++ b/code/WorkInProgress/Cael_Aislinn/Rust/fuel_injector.dm @@ -104,11 +104,11 @@ user.machine = null user << browse(null, "window=fuel_injector") return - var/t = "Reactor Core Fuel Injector
" + var/t = "Reactor Core Fuel Injector
" t += "Stage: [stage]
" t += "Status: [injecting ? "Active \[Disable\]" : "Standby \[Enable\]"]
" - t += "Interval (sec): [rate/10] \[Modify\]" - t += "Fuel usage: [fuel_usage*100]% \[Modify\]" + t += "Interval (sec): [rate/10] \[Modify\]
" + t += "Fuel usage: [fuel_usage*100]% \[Modify\]
" /* var/t = "Reactor Core Fuel Control
" t += "Current fuel injection stage: [active_stage]
" @@ -146,6 +146,7 @@ t += "" t += "" */ + t += "
" t += "Close
" user << browse(t, "window=fuel_injector;size=500x800") user.machine = src @@ -178,26 +179,21 @@ for(var/reagent in owned_assembly_port.cur_assembly.rod_quantities) //world << "checking [reagent]" if(owned_assembly_port.cur_assembly.rod_quantities[reagent] > 0) - //world << " rods left: [owned_assembly_port.cur_assembly.rod_quantities[reagent]]] + //world << " rods left: [owned_assembly_port.cur_assembly.rod_quantities[reagent]]" var/amount = owned_assembly_port.cur_assembly.rod_quantities[reagent] * fuel_usage var/numparticles = round(amount * 1000) if(numparticles < 1) numparticles = 1 //world << " amount: [amount]" //world << " numparticles: [numparticles]" - for(var/i=0, i
" + dat += "Transponder Codes: