LeagueSandbox / LeagueSandbox-Default

LeagueSandbox's Default Content Package
70 stars 97 forks source link

Gangplank skills #116

Closed xTeJk closed 4 years ago

CLAassistant commented 5 years ago

CLA assistant check
All committers have signed the CLA.

MingSaber976 commented 5 years ago

GangPlankE you can use GameScript to addParticle(if you know what to do),and about give buffs to ally,you can follow "Taric R" to make AOE buff.

MingSaber976 commented 5 years ago

GangPlank W should be scale by AP, not AD. We don't have "RestoreHealth" function, please fix it

MingSaber976 commented 5 years ago

About R spell, you can use for() to make codes shorter.

MingSaber976 commented 5 years ago

Gangplank W you can use owner.Stats.CurrentHealth += healing number; to restore health.

MingSaber976 commented 5 years ago

GangplabkE BuffHudVisual and Particle should be in GameScript, else it will be weird, like particles didn't remove on other people.

MingSaber976 commented 5 years ago

in GangplankW, that Game script have "removeAfter" things, you could add that and remove owner.RemoveGameScript(); function.

xTeJk commented 5 years ago

GangplabkE BuffHudVisual and Particle should be in GameScript, else it will be weird, like particles didn't remove on other people.

AddBuffHUDVisual should be defined as var and then removed by RemoveBuffHUDVisual(..); in timer?

MingSaber976 commented 5 years ago

But you use foreach(), mean all units in the range. But you coded as removeParticle on one's(not sure who is the one).

MingSaber976 commented 5 years ago

So coded in GameScript then it won't have confusion and it will be more readable.

MingSaber976 commented 5 years ago

Check the IGameScript( not the buff one)construction is the current version, because you don't have "IChampion, ISpell,IAttackableUnit" type ( all without the "I" word)

MingSaber976 commented 5 years ago

CreateTimer should be vars number, not 0.5f (else it will happen at the same time)

xTeJk commented 5 years ago

if (unit is IChampion || unit is Minion || unit is Monster) Im not sure about this construction (shouldnt be IMinion and IMonster?)

About E foreach particle removing also.

I've checked GameScript but still dont understand how removeAfter; is working and what i should paste in code

xTeJk commented 5 years ago

CreateTimer should be vars number, not 0.5f (else it will happen at the same time)

So it should be CreateTimer(0.5, () => instead of CreateTimer(0.5f, () => am i right?

MingSaber976 commented 5 years ago

Gangplank visualHud and Particles should be in "Buffs/GangplankE.cs", so after time, it will disappear on units(remember foreach() function, you can use that)

MingSaber976 commented 5 years ago

@xTeJk No, like this example.

for(float p = 0.0f; p<=12; p += 0.5f)
{
  CreateTimer(p,()=>
  {
    ............
  });
}
MingSaber976 commented 5 years ago

And test in LeagueSandbox make sure it all works or not, most coding problems were solved.

MingSaber976 commented 5 years ago

And please remove GangplankR because the spells construction not that perfect(especially CreateTimer() function,the developers don't recommended to use that)

xTeJk commented 5 years ago

And please remove GangplankR because the spells construction not that perfect(especially CreateTimer() function,the developers don't recommended to use that)

Sure.

And test in LeagueSandbox make sure it all works or not, most coding problems were solved.

Everything is working fine.

MingSaber976 commented 5 years ago

GangplankE have CreateTimer please remove it and if you want removeParticle, code them in the BuffGameScript(Buffs/GangplankE.cs)

MingSaber976 commented 5 years ago

About GangplankW, that code won't over Maximum health,tested before.

MingSaber976 commented 5 years ago

You didn't removeParticle(if in game it still exist) Try make "private Particle" to show particles and also can be remove.

MingSaber976 commented 5 years ago

And in buffGameScript, you don't have "owner", try get "owner" from spell file, or just use unit(if it won't make game crash)

xTeJk commented 5 years ago

I do not know if these conditions for checking health points are correct, so please correct the code.

And in buffGameScript, you don't have "owner", try get "owner" from spell file, or just use unit(if it won't make game crash)

public void OnActivate(IObjAIBase unit, ISpell ownerSpell)

ownerSpell isnt a owner definition in buffgamescript?

MingSaber976 commented 5 years ago

ownerSpell is Spell class So you need the "IChampion" class to fit "owner"

MingSaber976 commented 5 years ago

Health point codes looks fine,but the middle one should be remove(because it didn't do the things)