mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Fix dominating message, fix fake player loading, mess around with reactor crystals
This commit is contained in:
1 parent
16f0761380
commit
a48f9dcfe9
13 files changed
+222
-52
No files matched your search
@@ -488,6 +488,14 @@ impl <C: Clone + Send> super::ConfigProvider<C> for CubeConfig {
|
||||
}).collect()
|
||||
}
|
||||
|
||||
fn filler_players(&self) -> Vec<super::FakePlayer> {
|
||||
self.battle.multiplayer.filler.iter().map(|player| super::FakePlayer {
|
||||
team: player.team,
|
||||
vehicle: player.vehicle.into_conf(),
|
||||
implementation: player.implementation.clone().to_config(),
|
||||
}).collect()
|
||||
}
|
||||
|
||||
fn energy(&self) -> super::EnergyConfig {
|
||||
super::EnergyConfig {
|
||||
refill_rate: self.battle.energy.refill_rate_per_s,
|
||||
|
||||
@@ -34,6 +34,7 @@ pub trait ConfigProvider<C: Clone> {
|
||||
fn maps(&self) -> std::collections::HashMap<GameMap, MapConfig>;
|
||||
fn url_links(&self) -> LinksConfig;
|
||||
fn fake_players(&self) -> Vec<FakePlayer>;
|
||||
fn filler_players(&self) -> Vec<FakePlayer>;
|
||||
fn energy(&self) -> EnergyConfig;
|
||||
fn ba_settings(&self) -> BattleArenaResolver;
|
||||
fn pit_settings(&self) -> PitSettings;
|
||||
|
||||
Reference in new issue
Block a user