Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ability targeting matrice rename [bounty: 3 XTR] #2557

Closed
DreadKnight opened this issue Mar 2, 2024 · 4 comments
Closed

ability targeting matrice rename [bounty: 3 XTR] #2557

DreadKnight opened this issue Mar 2, 2024 · 4 comments
Labels
bounty Some amount of our token, XatteR, is offered coding This issue requires some programming easy Good place to start if you're a new developer

Comments

@DreadKnight
Copy link
Member

DreadKnight commented Mar 2, 2024

PR #2556 (related to #1696) moved one of Stomper's targeting matrice into a file containing more of those.
The matrice should be named more generic, no unit/ability name but describing area rather.
Matrice code: https://github.com/FreezingMoon/AncientBeast/blob/master/src/utility/matrices.ts#L230

@DreadKnight DreadKnight added coding This issue requires some programming easy Good place to start if you're a new developer bounty Some amount of our token, XatteR, is offered labels Mar 2, 2024
@DreadKnight DreadKnight added this to the 0.6 - Cyber Wolf milestone Mar 2, 2024
@allmtz
Copy link
Contributor

allmtz commented Mar 2, 2024

The origin lines for Earth Shaker and Infernal Prayer are slightly different:

// Earth Shaker
	[
		[0, 0, 1, 0],
		[0, 0, 1, 1],
		[0, 1, 1, 0], // Origin line
		[0, 0, 1, 1],
		[0, 0, 1, 0],
	]

// Infernal Prayer
	[
		[0, 0, 1, 0],
		[0, 0, 1, 1],
		[1, 1, 1, 0], // Origin line
		[0, 0, 1, 1],
		[0, 0, 1, 0],
	]

I tried using the Earth Shaker matrix for Infernal Prayer but this results in not being able to attack targets in the hex directly in front and behind of the Infernal. Pretty sure this is because an Infernal is 3 hexes wide vs Stomper being 2 hexes wide.

stomper-matrix

Both matrices are needed but they could be made more generic with names like largeCreatureFrontAndBack9Hex and mediumCreatureFrontAndBack8Hex. Or more specifically size2CreatureFrontAndBack8Hex and size3CreatureFrontAndBack9Hex. Not very pretty but it avoids confusion in the future if a creature larger than 3 hexes is introduced. @DreadKnight thoughts?

@DreadKnight
Copy link
Member Author

DreadKnight commented Mar 2, 2024

The origin lines for Earth Shaker and Infernal Prayer are slightly different:

// Earth Shaker
	[
		[0, 0, 1, 0],
		[0, 0, 1, 1],
		[0, 1, 1, 0], // Origin line
		[0, 0, 1, 1],
		[0, 0, 1, 0],
	]

// Infernal Prayer
	[
		[0, 0, 1, 0],
		[0, 0, 1, 1],
		[1, 1, 1, 0], // Origin line
		[0, 0, 1, 1],
		[0, 0, 1, 0],
	]

I tried using the Earth Shaker matrix for Infernal Prayer but this results in not being able to attack targets in the hex directly in front and behind of the Infernal. Pretty sure this is because an Infernal is 3 hexes wide vs Stomper being 2 hexes wide.
stomper-matrix

Both matrices are needed but they could be made more generic with names like largeCreatureFrontAndBack9Hex and mediumCreatureFrontAndBack8Hex. Or more specifically size2CreatureFrontAndBack8Hex and size3CreatureFrontAndBack9Hex. Not very pretty but it avoids confusion in the future if a creature larger than 3 hexes is introduced. @DreadKnight thoughts?

Thought there was an issue regarding reusing that, thanks for looking into it and confirming @allmtz
I think the issue is not actually because of the different size of units, but that Intense Prayer affects a bigger area for several reasons:

  • animation wise, Infernal will be hitting frontal-underneath hexagon
  • upgraded Intense Prayer will be complementing the passive nicely if keeping position, leaving traps under all Infernal's hexagons
  • this would be an area attack, I didn't want the direct hit to be a hexagon that can be occupied by a foe in order to avoid some confusion when dealing with blocks/wards/shields type of mechanics and to reinforce the animation.

At some point I recall I've even considered Intense Prayer's upgrade being rather OP and wanted to revamp it, but some fans opposed to the idea, saying they really like it like this xD

I could drop the "reuse" part between those two and just consider a more useful rename then; will tweak OP.

@DreadKnight DreadKnight changed the title matrice rename & reuse [bounty: 3 XTR] matrice rename [bounty: 3 XTR] Mar 2, 2024
@DreadKnight DreadKnight changed the title matrice rename [bounty: 3 XTR] ability targeting matrice rename [bounty: 3 XTR] Mar 2, 2024
@allmtz
Copy link
Contributor

allmtz commented Mar 3, 2024

I think the issue is not actually because of the different size of units, but that Intense Prayer affects a bigger area for several reasons:

  • animation wise, Infernal will be hitting frontal-underneath hexagon

Dropping the size from the name, what do you think of frontAndBack8Hex and frontAndBack9Hex?

@DreadKnight
Copy link
Member Author

DreadKnight commented Mar 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty Some amount of our token, XatteR, is offered coding This issue requires some programming easy Good place to start if you're a new developer
Projects
None yet
Development

No branches or pull requests

2 participants