implement smart bullet
This commit is contained in:
parent
21f7d1d5f4
commit
0e01ff0fb9
1 changed files with 54 additions and 21 deletions
|
|
@ -21,16 +21,13 @@ internal readonly record struct Magazine(MagazineType Type, byte UsedBullets, by
|
|||
var sb = new StringBuilder();
|
||||
|
||||
if (Type.HasFlag(MagazineType.Fast))
|
||||
sb.Append('»');
|
||||
sb.Append("» ");
|
||||
if (Type.HasFlag(MagazineType.Explosive))
|
||||
sb.Append('*');
|
||||
sb.Append("* ");
|
||||
if (Type.HasFlag(MagazineType.Smart))
|
||||
sb.Append('@');
|
||||
sb.Append("@ ");
|
||||
if (Type.HasFlag(MagazineType.Mine))
|
||||
sb.Append('\u263c');
|
||||
|
||||
if (sb.Length > 0)
|
||||
sb.Append(' ');
|
||||
sb.Append("\u263c ");
|
||||
|
||||
sb.Append("[ ");
|
||||
for (var i = 0; i < UsedBullets; i++)
|
||||
|
|
|
|||
Reference in a new issue