Hucaru / Valhalla

A Golang MapleStory (v28) server
MIT License
274 stars 71 forks source link

Adding mob skills #26

Closed ErwinsExpertise closed 4 years ago

ErwinsExpertise commented 4 years ago

This process seems to be rather drawn out so I will be implementing this in sections.

Process to use skill:

  1. Load skills from NX
  2. Identify if mob can use skill/currently using
  3. If eligible to use skill assign a random skill as next use

Once an eligible skill has been identified it must be applied. Depending on the type of skill this can be various different methods. Most common: Apply Stats (Seal, Stun, etc) Summon Mobs

Both methods will likely be independent PR's as well.

At the moment this code will assign the next skill to use. It does need to be cleaned up a little bit. Currently, when applying the skill to the controller it is getting stuck in a loop. Is there a default skillID to set for regular attacks to bring it back?

Continuing to work on this.

ErwinsExpertise commented 4 years ago

If you are comfortable with the merge it should be good to merge.