fix: ship production math
This commit is contained in:
committed by
Ilia Denisov
parent
9088cc77c9
commit
327f2865d4
@@ -22,9 +22,9 @@ const (
|
||||
|
||||
type Production struct {
|
||||
Type ProductionType `json:"type"`
|
||||
SubjectID *uuid.UUID `json:"subjectId"` // TODO: get rid of Nils?
|
||||
Progress *Float `json:"progress"`
|
||||
FreeProd *Float // TODO: rename, store
|
||||
SubjectID *uuid.UUID `json:"subjectId,omitempty"` // TODO: get rid of Nils?
|
||||
Progress *Float `json:"progress,omitempty"`
|
||||
ProdUsed *Float `json:"prodUsed,omitempty"`
|
||||
}
|
||||
|
||||
func (p ProductionType) AsType(subject uuid.UUID) Production {
|
||||
|
||||
Reference in New Issue
Block a user