Skip to content

Conversation

@slaw-22
Copy link
Contributor

@slaw-22 slaw-22 commented Oct 3, 2025

Do you think the name IsOutlaw is suitable?

IsOutlaw returns true when the monster behavior is one of the following:

BEHAVIOR_OUTLAW = 1,
BEHAVIOR_HIDDEN_OUTLAW = 2,  
BEHAVIOR_FLEEING_OUTLAW = 3,

However, there are two more monster behaviors that include "outlaw" in the name, but this function returns false if they were passed in:

BEHAVIOR_OUTLAW_TEAM_LEADER = 4,
BEHAVIOR_OUTLAW_TEAM_MINION = 5,

I'm not clear where the OUTLAW_TEAM behaviours are used, so it is possible the name "IsOutlaw" isn't 100% accurate.

@slaw-22 slaw-22 marked this pull request as ready for review October 3, 2025 20:27
@AnonymousRandomPerson
Copy link
Collaborator

BEHAVIOR_OUTLAW_TEAM_LEADER and BEHAVIOR_OUTLAW_TEAM_MINION are for a special outlaw mission type with a group of outlaws on a single-room floor, similar to a story boss. Like this:
unknown

So IsOutlaw excludes these kinds of outlaws. Perhaps something like IsRegularOutlaw? Also open to suggestions if you have a better name given the context.

#include "dungeon_mode.h"
#include "util.h"

bool8 IsOutlaw2(struct monster* monster_info)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is likely a veneer, so this function can be called IsOutlawVeneer. If you rename IsOutlaw, remember to rename this too.

@slaw-22 slaw-22 force-pushed the IsOutlaw branch 2 times, most recently from 8b5ce9a to 7464b86 Compare October 4, 2025 15:45
@slaw-22 slaw-22 marked this pull request as draft October 4, 2025 15:47
@slaw-22 slaw-22 marked this pull request as ready for review October 4, 2025 16:11
@slaw-22
Copy link
Contributor Author

slaw-22 commented Oct 4, 2025

I've updated the pull request in accordance with the comments and it is ready for re-review.

Thank you @AnonymousRandomPerson. This is really useful feedback.

@AnonymousRandomPerson AnonymousRandomPerson merged commit 87d5d04 into pret:main Oct 4, 2025
1 check passed
github-actions bot pushed a commit that referenced this pull request Oct 4, 2025
@slaw-22 slaw-22 deleted the IsOutlaw branch October 25, 2025 20:56
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.

2 participants