@@ -173,16 +173,32 @@ void NWNX_Creature_SetSpecialAbility(object creature, int index, struct NWNX_Cre
173173// / @return The class id.
174174int NWNX_Creature_GetClassByLevel (object creature, int level);
175175
176- // / @brief Sets the base AC for the creature.
176+ // / @brief Sets the base AC of a creature.
177177// / @param creature The creature object.
178- // / @param ac The base AC to set for the creature.
178+ // / @param ac The base AC to set.
179+ // / @note While polymorphed, the engine uses a separate variable for AC calculation.
180+ // / Use NWNX_Creature_SetBaseACPolymorph() to get/set AC when the creature is polymorphed.
179181void NWNX_Creature_SetBaseAC (object creature, int ac);
180182
181- // / @brief Get the base AC for the creature.
183+ // / @brief Gets the base AC of a creature.
182184// / @param creature The creature object.
183185// / @return The base AC.
186+ // / @note While polymorphed, the engine uses a separate variable for AC calculation.
187+ // / Use NWNX_Creature_GetBaseACPolymorph() to get/set AC when the creature is polymorphed.
184188int NWNX_Creature_GetBaseAC (object creature);
185189
190+ // / @brief Sets the AC of a polymorphed creature.
191+ // / @param creature The creature object.
192+ // / @param ac The AC to set.
193+ // / @note This value is only used by the engine when the creature is polymorphed.
194+ void NWNX_Creature_SetBaseACPolymorph (object creature, int ac);
195+
196+ // / @brief Gets the AC of a polymorphed creature.
197+ // / @param creature The creature object.
198+ // / @return The polymorph AC.
199+ // / @note This value is only used by the engine when the creature is polymorphed.
200+ int NWNX_Creature_GetBaseACPolymorph (object creature);
201+
186202// / @brief Sets the ability score of the creature to the provided value.
187203// / @note Does not apply racial bonuses/penalties.
188204// / @param creature The creature object.
0 commit comments