Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions include/h3api/H3Heroes/H3Hero.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ namespace h3
/** @brief [46] radius for patrolling, -1 means no range limit*/
INT8 patrolRadius;
protected:
h3unk8 _f_47;
h3unk8 _f_48;
/** @brief [47] direction in which the hero looks*/
h3unk8 faceing;
Copy link
Owner

@RoseKavalier RoseKavalier Jun 21, 2024

Choose a reason for hiding this comment

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

Change to an INT8 (0..7)
And rename 'facing' without the 'e'.

/** @brief [48] selected formation type for troups*/
h3unk8 formationType;
Copy link
Owner

Choose a reason for hiding this comment

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

Change to UINT8.
This is a bitfield, bit 0 is formation (tight/loose) and bit 1 is tactics enabled/disabled.

public:
/** @brief [49] maximum movement points of the hero on a given turn*/
INT32 maxMovement;
Expand Down