iopietro / Travianz-Legacy

Join our Discord Server: https://discordapp.com/invite/9fbJKP9 | New repo: https://github.com/iopietro/Travianz
GNU General Public License v3.0
160 stars 95 forks source link

Clarification of the battle process #507

Closed TerraSkye closed 6 years ago

TerraSkye commented 6 years ago

hello, i'm trying to clarify processes that happen within travian at the moment im trying to work out the way an attack happens and ive come to the folowing order from up to down. is there anyway someone can confirm my way of thinking?

(arrival at the target village/oasis)

  • simulate battle.
  • kill troops sender
  • kill troops defender
  • add exp to hero
  • fetch resources. if containing cataoult/ram
  • decrease building levels if containing chieften -reduce loyalty -transfer village -remove chiefen
  • send troops back
  • send report
  • add returning troops to tracking list ( at arrival at the village).
  • add troops back to the village
  • add resources back to the village.
  • remove attack from the tracking list.
iopietro commented 6 years ago

Yep, that should be the correct process, the only two things you forgot are: 1) The prisoners calculation, that happens before the battle. 2) Resources are fetched as you said, but are removed from the village/oasis after sending the reports.

RevertIT commented 6 years ago

@iopietro thanks for working on this project! You should ask @Shadowss to lead this project.

iopietro commented 6 years ago

@phaze1G It's a pleasure for me :) . I've tried on skype and gmail, but i've not received an answer, lol (i think that he didn't see my email/skype message).

velhbxtyrj commented 6 years ago

Most likely he is absent. If it appears, it will definitely give full access.

iopietro commented 6 years ago

Yeah, i think so too.

TerraSkye commented 6 years ago

Thank you for the clarification

As ive stated in an other issue im working on a small rework of travian. When i have some more work done i will share my work. And maybe if its something you guys like we can continu to build forward on it.

iopietro commented 6 years ago

Rewriting the entire code from scratch is a very huge work, good luck!