Compare commits

..

3 commits

2 changed files with 12 additions and 8 deletions

View file

@ -1,13 +1,13 @@
# v0.12.0-dev # v0.12.0-dev
- Implement tidal locking of moons
- Implement space suit thruster particle effects - Implement space suit thruster particle effects
- Implement space suit modding - Implement space suit modding (flashlight, thruster, light amp, reactor)
- Add power-hungry thruster booster - Change flash light cone to a smaller one
- Add different flashlight power settings - Add textured high-poly models for ring moons (Thebe/Amalthea/Adrastea/Metis)
- Add different light amplification settings - Add temporary battery damage when overusing thruster booster
- Add reactor overload and shutdown
- Add battery damage when overusing thruster booster
- Add radiation damage - Add radiation damage
- Remove asteroid "Lum" (it was just there for testing)
- Fix radio stations - Fix radio stations
# v0.11.0 # v0.11.0

View file

@ -281,13 +281,15 @@ pub fn update_power(
prefs: Res<Preferences>, prefs: Res<Preferences>,
mut q_battery: Query<(&mut Battery, &mut Engine), With<Player>>, mut q_battery: Query<(&mut Battery, &mut Engine), With<Player>>,
mut q_flashlight: Query<&mut Visibility, With<PlayersFlashLight>>, mut q_flashlight: Query<&mut Visibility, With<PlayersFlashLight>>,
q_bike: Query<&PlayerDrivesThis>,
mut ew_sfx: EventWriter<audio::PlaySfxEvent>, mut ew_sfx: EventWriter<audio::PlaySfxEvent>,
mut ew_game: EventWriter<game::GameEvent>, mut ew_game: EventWriter<game::GameEvent>,
) { ) {
let mut power_down = false; let mut power_down = false;
let d = time.delta_seconds(); let d = time.delta_seconds();
let inside_vehicle = !q_bike.is_empty();
for (mut battery, mut engine) in &mut q_battery { for (mut battery, mut engine) in &mut q_battery {
if !settings.god_mode { if !inside_vehicle && !settings.god_mode {
if settings.flashlight_active { if settings.flashlight_active {
battery.power -= POWER_DRAIN_FLASHLIGHT[prefs.flashlight_power] * d; // 2.4MW battery.power -= POWER_DRAIN_FLASHLIGHT[prefs.flashlight_power] * d; // 2.4MW
if battery.power <= 0.0 { if battery.power <= 0.0 {
@ -353,8 +355,10 @@ pub fn update_physics_lifeforms(
&Position, &Position,
Option<&Player>, Option<&Player>,
)>, )>,
q_bike: Query<&PlayerDrivesThis>,
) { ) {
let d = time.delta_seconds(); let d = time.delta_seconds();
let inside_vehicle = !q_bike.is_empty();
for (mut lifeform, mut hp, mut suit, velocity, pos, player) in query.iter_mut() { for (mut lifeform, mut hp, mut suit, velocity, pos, player) in query.iter_mut() {
if lifeform.adrenaline_jolt.abs() > 1e-3 { if lifeform.adrenaline_jolt.abs() > 1e-3 {
lifeform.adrenaline_jolt *= 0.99; lifeform.adrenaline_jolt *= 0.99;
@ -369,7 +373,7 @@ pub fn update_physics_lifeforms(
(lifeform.adrenaline - 0.0001 + lifeform.adrenaline_jolt * 0.01).clamp(0.0, 1.0); (lifeform.adrenaline - 0.0001 + lifeform.adrenaline_jolt * 0.01).clamp(0.0, 1.0);
if player.is_some() { if player.is_some() {
lifeform.is_radioactively_damaged = if settings.reactor_state == 2 { lifeform.is_radioactively_damaged = if !inside_vehicle && settings.reactor_state == 2 {
true true
} else if let Some(pos_jupiter) = id2pos.0.get(cmd::ID_JUPITER) { } else if let Some(pos_jupiter) = id2pos.0.get(cmd::ID_JUPITER) {
pos_jupiter.distance(pos.0) < 140_000_000.0 pos_jupiter.distance(pos.0) < 140_000_000.0