Flamingolo / game

Text based web game
1 stars 0 forks source link

Implement experience gains #27

Closed olegsiga closed 1 week ago

olegsiga commented 2 weeks ago

Experience constant multiplied by mob level

the higher the character level than mob the less exp character will get for example if character is level 5 and mob is level 4, that is 1 level difference so character will get 10 % less, if mob is 1 level higher than character then character will get 20% more exp

all experience gains happen only if mob is defeated, meaning mob reaches 0 health then experience is assigned to character

experience is gained when encounter ends implement it in level service, and level service should call character service to update character progress encoutner service calls level service to do the experience calculation