refactor: floats, tests
This commit is contained in:
@@ -61,7 +61,6 @@ const (
|
||||
ErrInputUpgradeShipTechNotUsed
|
||||
ErrInputUpgradeParameterNotAllowed
|
||||
ErrInputUpgradeShipsAlreadyUpToDate
|
||||
ErrInputUpgradeGroupBreakNotAllowed
|
||||
ErrInputUpgradeTechLevelInsufficient
|
||||
)
|
||||
|
||||
@@ -161,8 +160,6 @@ func GenericErrorText(code int) string {
|
||||
return "Not enough ships in the group to make an upgrade"
|
||||
case ErrUpgradeInsufficientResources:
|
||||
return "Insufficient planet production capacity"
|
||||
case ErrInputUpgradeGroupBreakNotAllowed:
|
||||
return "The Group is already in upgrade state and can't be divided to a smaller group"
|
||||
case ErrInputUpgradeTechLevelInsufficient:
|
||||
return "Insifficient Tech level for requested upgrade"
|
||||
case ErrSendShipHasNoDrives:
|
||||
|
||||
@@ -160,10 +160,6 @@ func NewUpgradeInsufficientResourcesError(arg ...any) error {
|
||||
return newGenericError(ErrUpgradeInsufficientResources, arg...)
|
||||
}
|
||||
|
||||
func NewUpgradeGroupBreakNotAllowedError(arg ...any) error {
|
||||
return newGenericError(ErrInputUpgradeGroupBreakNotAllowed, arg...)
|
||||
}
|
||||
|
||||
func NewUpgradeTechLevelInsufficientError(arg ...any) error {
|
||||
return newGenericError(ErrInputUpgradeTechLevelInsufficient, arg...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user