コード例 #1
0
 public override string ToString()
 {
     return($"{unitsType.type}: {totalHitPoints} ({(!fightedBack ? "FB" : "")}) E({string.Join(", ", GetEffects())}) C({string.Join(", ", Casts.Select(x => x.type))}) M({string.Join(", ", GetModifiers())})");
 }
コード例 #2
0
 public override string ToString()
 {
     return($"Action: {ActionTaken}, Inv: [{Inventory[0]},{Inventory[1]},{Inventory[2]},{Inventory[3]}], Casts: [{Casts.Select(a => a.Value.ToString()).Aggregate((a, b) => $"{a}, {b}")}], Tally: {Tally}");
 }