Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: GalaxyEspionage #50

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

flashover
Copy link
Contributor

This is code to send espionage missions directly from galaxy. Seems to work better in Ogamev7, it makes less galaxyurl() calls. Code could be simpler if it would return immediately if the JSON struct would have success = false . But it needs some kind of statemachine to forcefully refresh and get new token (=galaxyurl()).

Let me know your thoughts!

@codecov-io
Copy link

codecov-io commented Dec 31, 2019

Codecov Report

Merging #50 into develop will decrease coverage by 1.04%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #50      +/-   ##
===========================================
- Coverage    43.81%   42.77%   -1.05%     
===========================================
  Files          108      108              
  Lines         8923     9140     +217     
===========================================
  Hits          3910     3910              
- Misses        4907     5124     +217     
  Partials       106      106
Impacted Files Coverage Δ
ogame.go 5.01% <0%> (-0.42%) ⬇️
prioritize.go 0% <0%> (ø) ⬆️
handlers.go 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a814bfe...82d9a8e. Read the comment docs.

…). The GalaxyEspionage2() is a simpler version of the original GalaxyEspionage(). GalaxyEspionageWithFallbackToSendFleet() calls GalaxyEspionage2() but if that fails it will fall back to SendFleet()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants