improvfmeents
This commit is contained in:
@@ -50,6 +50,11 @@ public class Player
|
||||
Avatar = avatar;
|
||||
Difficulty = difficulty;
|
||||
PersonalityId = personalityId;
|
||||
if (type == PlayerType.AI && string.IsNullOrEmpty(PersonalityId))
|
||||
{
|
||||
var pers = AIPersonality.All.FirstOrDefault(a => a.BaseAvatar == avatar);
|
||||
PersonalityId = pers?.Id ?? "fox";
|
||||
}
|
||||
}
|
||||
|
||||
public string GetLiveAvatar()
|
||||
|
||||
Reference in New Issue
Block a user