feat: store battles and bombings
This commit is contained in:
@@ -233,3 +233,10 @@ func (sg ShipGroup) BombingPower(st *ShipType) float64 {
|
||||
float64(st.Armament) *
|
||||
float64(sg.Number)
|
||||
}
|
||||
|
||||
func (sg ShipGroup) CargoString() string {
|
||||
if sg.CargoType == nil {
|
||||
return "-"
|
||||
}
|
||||
return sg.CargoType.String()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user