feat: hardcode cerydra & dh-pt technique
This commit is contained in:
@@ -89,8 +89,14 @@ async fn create_battle_info(
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
let mut first_avatar_id = 0;
|
||||
|
||||
// avatars
|
||||
for (avatar_index, avatar_id) in player.lineups.iter() {
|
||||
if first_avatar_id == 0 {
|
||||
first_avatar_id = *avatar_id;
|
||||
}
|
||||
|
||||
let is_trailblazer = *avatar_id == 8001;
|
||||
let is_march = *avatar_id == 1001;
|
||||
|
||||
@@ -158,6 +164,15 @@ async fn create_battle_info(
|
||||
};
|
||||
}
|
||||
|
||||
// Hardcoded Cerydra & Danheng PT technique
|
||||
if first_avatar_id != 0 {
|
||||
for buff in battle_info.buff_list.iter_mut() {
|
||||
if buff.id == 141202 || buff.id == 141403 {
|
||||
buff.owner_id = first_avatar_id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// custom stats for avatars
|
||||
for stat in &player.battle_config.custom_stats {
|
||||
for avatar in &mut battle_info.battle_avatar_list {
|
||||
|
||||
Reference in New Issue
Block a user