Give user (some) sif titles when transfering

This commit is contained in:
Ethan O'Brien
2024-06-04 10:32:55 -05:00
parent f39b5469ef
commit 3ed59060a6
3 changed files with 11 additions and 4 deletions

View File

@@ -136,8 +136,9 @@ pub fn give_gift(data: &JsonValue, user: &mut JsonValue, missions: &mut JsonValu
let title = data["value"].as_i64().unwrap();
if !user["master_title_ids"].contains(title) {
user["master_title_ids"].push(title).unwrap();
return true;
}
return true;
return false;
}
println!("Redeeming reward not implemented for reward type {}", data["reward_type"]);
false