mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Complete bare minimum to seem logged in
This commit is contained in:
1 parent
fe30e783ad
commit
7e31f6fe1d
55 files changed
+1147
-81
No files matched your search
@@ -0,0 +1,31 @@
|
||||
use polariton_server::operations::SimpleFunc;
|
||||
use polariton::operation::ParameterTable;
|
||||
|
||||
use crate::data::quest::*;
|
||||
|
||||
const PARAM_KEY: u8 = 155; // int
|
||||
|
||||
pub(super) fn player_daily_quests_provider() -> SimpleFunc<13, crate::UserTy, impl (Fn(ParameterTable, &crate::UserTy) -> Result<ParameterTable, i16>) + Sync + Sync> {
|
||||
SimpleFunc::new(|params, _| {
|
||||
let mut params = params.to_dict();
|
||||
params.insert(PARAM_KEY, DailyQuestsInfo {
|
||||
can_remove_quest: true,
|
||||
player_quests: vec![
|
||||
QuestInfo {
|
||||
id: "RE_quest_id0".to_owned(),
|
||||
name: "RE_quest_name0".to_owned(),
|
||||
description: "RE_quest_description0".to_owned(),
|
||||
xp: 1_000,
|
||||
premium_xp: 2_000,
|
||||
robits: 1_000,
|
||||
premium_robits: 1_000,
|
||||
progress_count: 1,
|
||||
target_count: 3,
|
||||
seen: true,
|
||||
}
|
||||
],
|
||||
completed_quests: Vec::default(),
|
||||
}.as_transmissible());
|
||||
Ok(params.into())
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user