Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nexus4880 committed Oct 24, 2024
1 parent c467b57 commit e9d7713
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Fuyu.Backend.BSG/DTO/Profiles/Profile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class Profile
[DataMember]
public RagfairInfo RagfairInfo;

[DataMember]
[DataMember(EmitDefaultValue = false)]
public Dictionary<MongoId, TraderInfo> TradersInfo;

[DataMember]
Expand Down
2 changes: 1 addition & 1 deletion Fuyu.Backend.BSG/DTO/Profiles/ProfileInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public class ProfileInfo
[DataMember]
public bool HasPveGame;

[DataMember]
[DataMember(EmitDefaultValue = false)]
public Ban[] Bans;
}
}
6 changes: 6 additions & 0 deletions Fuyu.Backend.EFT/Services/BotService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ public static Profile[] GetBots(BotCondition[] conditions)

private static Profile GenerateBot(EBotRole role)
{
// TODO: remove this rimuru top 1 pls fix immediately
if (role == EBotRole.pmcBEAR || role == EBotRole.pmcUSEC)
{
role = EBotRole.assault;
}

var profile = Json.Parse<Profile>(_profiles[role]);

// regenerate all ids
Expand Down
2 changes: 1 addition & 1 deletion Fuyu.Backend.EFT/Services/ItemService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static void RegenerateInventoryIds(InventoryInfo inventory)
if (inventory.stash != null)
{
mapping.Add(inventory.stash.Value, new MongoId(true));
inventory.equipment = mapping[inventory.stash.Value];
inventory.stash = mapping[inventory.stash.Value];
}

// regenerate inventory quest raid items
Expand Down

0 comments on commit e9d7713

Please sign in to comment.