diff --git a/init.lua b/init.lua index 8606667c..e900e96b 100755 --- a/init.lua +++ b/init.lua @@ -120,6 +120,9 @@ function OnPlayerSpawned( player_entity ) -- This runs when player entity has be np.SetPauseState(4) np.SetPauseState(0) + local hp = util.get_ent_health(player_entity) + util.set_ent_health(player_entity, {hp*3, hp*3}) + EntityAddTag(player_entity, "polymorphable_NOT") -- TODO if ctx.is_host then diff --git a/noita-proxy/src/net.rs b/noita-proxy/src/net.rs index 570f7312..530bd938 100644 --- a/noita-proxy/src/net.rs +++ b/noita-proxy/src/net.rs @@ -262,8 +262,15 @@ impl NetManager { Some("game_over") => { if self.is_host() { info!("Game over, resending game settings"); - self.settings.lock().unwrap().seed += 1; - info!("New seed: {}", self.settings.lock().unwrap().seed); + { + let mut setting = self.settings.lock().unwrap(); + if setting.debug_mode { + setting.seed += 1; + } else { + setting.seed = rand::random(); + } + info!("New seed: {}", setting.seed); + } self.resend_game_settings(); } } diff --git a/todo.txt b/todo.txt index 822ddb09..b3a3a695 100644 --- a/todo.txt +++ b/todo.txt @@ -34,4 +34,6 @@ - orbs sync - test tangled better - poly on clients - - proxy: stop receiving connections before another start_game on game over, noita: try to reconnect to proxy. \ No newline at end of file + - proxy: stop receiving connections before another start_game on game over, noita: try to reconnect to proxy. + - sync traps + \ No newline at end of file