Make Ninja class more playable (maybe buff)
Suggested changes:
- [x] Make the ninja invincible for hammers during the slash (the split second of fast attack swing)
- [ ] Change the ninja rewards to a constant list
- [x] #51
Ninja rewards (v2):
- +1 dmg, +1 velocity
- invisibility grendes (0.75/1.5 sec duration?)
- faster ammo regen
- increased flash AoE
- increased invisibility duration (1/2.5 sec?)
The suggested rewards list (an example for the first approximation):
- +1 slash dmg
- extra velocity (worth like 2-3 current velocity buffs)
- faster ammo regen
- extra flash grenade AoE
- +1 slash in the air
@Intramint please correct me if I wrong.
Currently (newly) implemented rewards list:
Level 1: Sword strength increased (damage +1)
Level 2: Sword velocity increased (2nd from the buffs list)
Level 3: Ammo regeneration accelerated (Default interval is 15 sec, reduce to 11 sec, also +2 max ammo)
Level 4: Flash grenade radius increased (Default radius is 8 tiles, increase to 11)
Level 5: An extra ninja swing given (Default inf_ninja_jump 2, give an extra jump for this ninja)
Side effects: it turned out that the collisions are not calculated properly. With the velocity buff there is a change to get through. Rework this code to fix the bug: https://github.com/InfectionDust/teeworlds-infclassR/blob/8f622e1d2f9eb7b6041f603f0e0484f826e44d54/src/game/server/entities/character.cpp#L305-L356
@InfectionDust/scientists and @InfectionDust/engineers, let's the flame begin.
Let ninja have another slash, if he hits a zombie mid-air. This will be hilarious and Ipoopi will love to abuse it. xD