Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override string ToString()
- {
- var output = new StringBuilder();
- output.AppendLine(string.Format("--{0} - {1}", this.Name, this.GetType().Name));
- if (this.Health <= 0)
- {
- output.AppendLine("(Destroyed)");
- }
- else
- {
- output.AppendLine($"-Location: {this.Location.Name}");
- output.AppendLine($"-Health: {this.Health}");
- output.AppendLine($"-Shields: {this.Shields}");
- output.AppendLine($"-Damage: {this.Damage}");
- output.AppendLine($"-Fuel: {this.Fuel}");
- foreach (var enhancement in Enhancements)
- {
- output.AppendLine($"-Enhancements: {enhancement}");
- }
- //-Enhancements: ExtendedFuelCells, KineticBarrier
- }
- return output.ToString();
- }
Advertisement
Add Comment
Please, Sign In to add comment