FreezingMoon / AncientBeast

The Turn Based Strategy Game/eSport. Master your beasts! 🐺
https://AncientBeast.com
GNU Affero General Public License v3.0
1.67k stars 585 forks source link

Swine Thug tweaks #877

Closed DreadKnight closed 8 years ago

DreadKnight commented 8 years ago

I've added upgrades to the abilities and did a bit of tweaks the old abilities themselves https://github.com/FreezingMoon/AncientBeast/blob/master/development/src/abilities/Swine%20Thug.js Keep in mind as reference that currently only Abolished from that folder has the upgrades enabled.

Spa Goggles - this ability is passive. Gains temporary bonus regrowth and defense when staying in a mud bath. +5 regrowth, +5 defense bonus stat. Upgrade: Doubles the stat bonuses.

I've added a simple self explanatory upgrade to the ability.

Baseball Baton - costs 20 energy pts. Bashes baseball bat into a nearby foe, crushing it and pushing it 1 hexagon. 25 crush damage on hit & knockback. Upgrade: Causes target to mud slide.

The knockback needs to be added to the ability. Regarding the upgrade, the target unit will get moved across all the aligned mud tiles in the direction hit (inline or diagonally), the target unit stopping near an obstacle or on a non-muddy tile.

Ground Ball - costs 25 energy pts. Strikes a mud boulder towards a foe. Usable within one of the 3 inline rows. 15 crush + 5 burn damage on each hit. Upgrade: -1 meditation stat debuffed.

The upgrade will cause hits to indefinitely debuff the target, this debuff stacks.

Mud Bath - costs 30 energy pts. Orders a pile of mud over any hexagon, slowing any other units that walk over. -1 movement point, on free spot or self. Upgrade: 10 energy cost if used on self.

Mud Bath is now usable on self as well. When the upgrade occurs, self use will require way less energy, so the ability should be usable when Swine Target has at least 10 energy points, but it will only highlight himself as the viable target (clicking anywhere else will cancel the ability, as expected).

cxong commented 8 years ago

I'd like to take this on as the test.

DreadKnight commented 8 years ago

@cxong Alright, go for it :)

cxong commented 8 years ago

Does baseball baton knock swine thug back, its enemy back, or both?

cxong commented 8 years ago

Note that spa mud's trigger is onCreatureMove, so if mud bath is cast on self, the ability won't trigger. Is this ok? Or is there a trigger that is more appropriate?

DreadKnight commented 8 years ago

Just got back home. Baseball baton only knocks back enemies.

Regarding the trigger, there should be one to make the passive trigger instantly if there isn't one already. There's a feature so that when an unit can't move anymore and can't use any abilities so you're being helped out by having some "skip turn" text above the unit and you can click on it to skip directly, so it might be using a more proper trigger perhaps; otherwise this stuff could result in a new issue.

cxong commented 8 years ago

Thanks for the info; the mud bath ability exposed a number of other issues, I'll just note them but for the purposes of this issue, I'd like to leave them there.

cxong commented 8 years ago

Just to clarify, about the mud slide upgrade, if a creature is big (size > 1) then does it need to be completely over mud hexes to slide, or is at least one enough?

cxong commented 8 years ago

I've figured out how to do the baseball baton knockback, but note that because the ability uses queryCreature(), you cannot control the knockback direction for size > 1 creatures based on which part of the creature was clicked. If this is wanted, I think it should go into a separate issue - possibly as an extension to how queryCreature works.

DreadKnight commented 8 years ago

Pff, quite problematic. I'm not too happy when this kind of stuff happens for an ability, as I like to keep things simpler hmm.

  1. The mud bath is not castable over other creatures actually; Only the upgrade will allow casting it on Swine Thug itself.
  2. The upgrade stuff is new and still needs some improvements, like the tooltips having more info; there's a frame change at least, but not very noticeable. The upgrades won't be separate because that would duplicate a lot of code, an upgraded ability is still mostly similar to the initial one, but does something a little extra or better.
  3. Understood, will see more after I test things in action regarding this.
  4. The buff/debuffs are broken UI wise overall for a while now because of some changes I probably made; anyway, I changed the design specification, so there's a new issue for that now, which is more similar to HoMM4, meaning it will display icons under the unit cards, which will provide more details.

Just to clarify, about the mud slide upgrade, if a creature is big (size > 1) then does it need to be completely over mud hexes to slide, or is at least one enough?

Regarding bigger units, they would probably need to at least land will all their hexagons over mud baths after the knockback.

I've figured out how to do the baseball baton knockback, but note that because the ability uses queryCreature(), you cannot control the knockback direction for size > 1 creatures based on which part of the creature was clicked. If this is wanted, I think it should go into a separate issue - possibly as an extension to how queryCreature works.

Understood, will see in testing hmm.

cxong commented 8 years ago

Thanks; I've updated the PR, also note that for bigger creatures, unless they are already partially over mud baths, then knocking them forward/backward into mud baths won't cause sliding.

DreadKnight commented 8 years ago

Ok, here's the report:

DreadKnight commented 8 years ago

Make sure you pull first before making any more changes xD Also, I'm around here most of the time https://gitter.im/FreezingMoon/AncientBeast

cxong commented 8 years ago

In the latest PR

DreadKnight commented 8 years ago

Gonna test soon. Code looks alright besides that duplication I mentioned. Where is the knockback speed variable defined exactly?

DreadKnight commented 8 years ago
cxong commented 8 years ago

Ok, see latest PR

DreadKnight commented 8 years ago
cxong commented 8 years ago

Thanks, in latest PR:

If you've found other bugs please let me know

DreadKnight commented 8 years ago

I've tested it and looks good. Only one thing that could be added in the log, another message saying what actually happened to the target unit after being hit by Ground Ball, something similar to what Uncle Fungus does (top 2 messages): screenshot from 2016-05-19 07-35-18

Oh, and for the Spa Goggles passive as well, less confusion that way. The info should be single a line.

DreadKnight commented 8 years ago

Oh, and for the Spa Goggles passive as well, less confusion that way. The info should be single a line.

Don't forget that one xD @cxong

cxong commented 8 years ago

Sorry, I should read more carefully :sweat:

DreadKnight commented 8 years ago

Had a feeling that might happen. Single text right after images kinda has that effect.

DreadKnight commented 8 years ago

Alright, good job, moving along now :D