eveseat / seat

🌀✳️ SeAT: A Simple, EVE Online API Tool and Corporation Manager
https://eveseat.github.io/docs/
GNU General Public License v2.0
425 stars 143 forks source link

Feature request: Clone status #842

Open Nfinished opened 2 years ago

Nfinished commented 2 years ago

I know there's no endpoint for alpha/omega clone state, but the state can be derived from training speed. It'd be nice to have on the character page.

Nfinished commented 2 years ago

example from evemon evemon

tehraven commented 2 years ago

EVEMon does this by associating a "Maximum Level For Alpha" for every skill.

https://github.com/peterhaneve/evemon/blob/730cc411d490574fb9d858fce27e8efb5dd0ecec/tools/XmlGenerator/Datafiles/Skills.cs#L66

And then the code can check:

 if (skillIsTraining && SkillPoints > EveConstants.MaxAlphaSkillTraining)
 {
     status = AccountStatus.Omega;
 }

and falls back to that Maximum Level logic:

https://github.com/peterhaneve/evemon/blob/730cc411d490574fb9d858fce27e8efb5dd0ecec/src/EVEMon.Common/Models/Character.cs#L94