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

New mob affixes #664

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open

New mob affixes #664

wants to merge 6 commits into from

Conversation

GabeHasWon
Copy link
Contributor

Link Issues

Resolves: #659
Resolves: #658
Resolves: #657
Resolves: #656
Resolves: #655

Description of Work

  • Adds in Siphoning, Damage, Fast, Aggravating affixes
  • Fixes up mob affix system to work properly & according to the wiki
  • Adds in mob affix icon & drawing
  • Adds in mob affix prefixes, and adds them to an NPC's name
  • Fix issue where only NetID NPCs could get affixes
  • Adds SpeedUpNPC for making NPCs behave faster

Copy link
Collaborator

@CollinHerber CollinHerber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two comments


return true;
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these should just be individual files tbh. I find these classes with multiple classes within it a bit hard to find sometimes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, I was just following what had already been set up - DoubleLife was nested in a LifeAffixes class.

{
public override bool PreAI(NPC npc)
{
if (npc.life < npc.lifeMax)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be looking for half health? Doesn't look like it is

@GabeHasWon
Copy link
Contributor Author

Good to re-review.

@GabeHasWon
Copy link
Contributor Author

image
Also made the affix modifiers on a newline since it does get obnoxiously long pretty easily, especially with Rare enemies. We might want to polish this in the future, make it smaller and put it under the normal Name : Health text.

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