Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alaingilbert committed Sep 24, 2022
1 parent de02c8c commit 61f0c48
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/ogame/resourceSettings.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ func (r ResourceSettings) String() string {
" Solar Plant: " + utils.FI64(r.SolarPlant) + "\n" +
" Fusion Reactor: " + utils.FI64(r.FusionReactor) + "\n" +
" Solar Satellite: " + utils.FI64(r.SolarSatellite) + "\n" +
" Crawler: " + utils.FI64(r.Crawler) + "\n"
" Crawler: " + utils.FI64(r.Crawler)
}
4 changes: 1 addition & 3 deletions pkg/ogame/resourceSettings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ func TestResourceSettings_String(t *testing.T) {
FusionReactor: 5,
SolarSatellite: 6,
Crawler: 7,
PlasmaTechnology: 8,
}
expected := "\n" +
" Metal Mine: 1\n" +
Expand All @@ -24,7 +23,6 @@ func TestResourceSettings_String(t *testing.T) {
" Solar Plant: 4\n" +
" Fusion Reactor: 5\n" +
" Solar Satellite: 6\n" +
" Crawler: 7\n" +
" Plasma Technology: 8"
" Crawler: 7"
assert.Equal(t, expected, r.String())
}
1 change: 0 additions & 1 deletion pkg/wrapper/ogame.go
Original file line number Diff line number Diff line change
Expand Up @@ -2843,7 +2843,6 @@ func (b *OGame) setResourceSettings(planetID ogame.PlanetID, settings ogame.Reso
"last12": {utils.FI64(settings.FusionReactor)},
"last212": {utils.FI64(settings.SolarSatellite)},
"last217": {utils.FI64(settings.Crawler)},
"last122": {utils.FI64(settings.PlasmaTechnology)},
}
url2 := b.serverURL + "/game/index.php?page=resourceSettings"
resp, err := b.client.PostForm(url2, payload)
Expand Down

0 comments on commit 61f0c48

Please sign in to comment.