mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Get campaign mode working, fix health/damage config
This commit is contained in:
14
rc_services_room/src/operations/weapon_order.rs
Normal file
14
rc_services_room/src/operations/weapon_order.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
use polariton_server::operations::Immediate;
|
||||
|
||||
use crate::persist::config::ConfigProvider;
|
||||
|
||||
pub const DEFAULT_WEAPON_ORDER_PARAM_KEY: u8 = 138;
|
||||
|
||||
pub(super) fn weapon_order_provider(conf: &crate::persist::config::ConfigImpl) -> Immediate<118, crate::UserTy> {
|
||||
let weapon_orders = conf.weapon_keys();
|
||||
Immediate::new(|| {
|
||||
let mut params = std::collections::HashMap::with_capacity(1);
|
||||
params.insert(DEFAULT_WEAPON_ORDER_PARAM_KEY, weapon_orders.clone());
|
||||
params.into()
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user