Compare commits
No commits in common. "8172af80842cdb9c71d33b2793eb8993b2da54bd" and "f135122dc71fc1046ab278fe397e45c6cecddfc7" have entirely different histories.
8172af8084
...
f135122dc7
12
CHANGELOG.md
12
CHANGELOG.md
|
@ -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 (flashlight, thruster, light amp, reactor)
|
- Implement space suit modding
|
||||||
- Change flash light cone to a smaller one
|
- Add power-hungry thruster booster
|
||||||
- Add textured high-poly models for ring moons (Thebe/Amalthea/Adrastea/Metis)
|
- Add different flashlight power settings
|
||||||
- Add temporary battery damage when overusing thruster booster
|
- Add different light amplification settings
|
||||||
|
- 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
|
||||||
|
|
|
@ -281,15 +281,13 @@ 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 !inside_vehicle && !settings.god_mode {
|
if !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 {
|
||||||
|
@ -355,10 +353,8 @@ 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;
|
||||||
|
@ -373,7 +369,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 !inside_vehicle && settings.reactor_state == 2 {
|
lifeform.is_radioactively_damaged = if 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
|
||||||
|
|
Loading…
Reference in a new issue