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

Added exceptions for showing irrelevant values #111

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

LOSER4ever
Copy link
Contributor

Removed Armor class 31 from armors of units since Obsolete.
Removed 0 attacks of units (like archers having 0 vs Rams, etc), but made sure that armor classes having units with negative armor are rendered properly.
Exceptions are hardcoded - may need to be updated with time.
Current exceptions: War Elephants, Cavalry and Siege Weapons since Ballista Elephants have -2 armor in each. Mounted Archers since Elephant Archers have -7 armor. Base melee since Rams have negative armor.

Removed Armor class 31 from armors of units since Obsolete.
Removed 0 attacks of units (like archers having 0 vs Rams, etc), but made sure that armor classes having units with negative armor are rendered properly.
Exceptions are hardcoded - may need to be updated with time.
Current exceptions: War Elephants, Cavalry and Siege Weapons since Ballista Elephants have -2 armor in each. Mounted Archers since Elephant Archers have -7 armor. Base melee since Rams have negative armor.
@HSZemi
Copy link
Member

HSZemi commented Aug 22, 2022

Hmm that is a lot of hardcoding based on the current balance…

@LOSER4ever
Copy link
Contributor Author

So what did you think of it?

@HSZemi
Copy link
Member

HSZemi commented Aug 24, 2022

I think I prefer to keep it as it currently is

@paulirish
Copy link
Contributor

@LOSER4ever is it possible to author this without the class ID hardcoding?

@LOSER4ever
Copy link
Contributor Author

You need to check all armor classes across units to see if the unit has negative armor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants