File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
NWN.Anvil/src/main/API/Object Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
33
44The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) .
55
6+ ## 8193.34.5
7+ https://github.com/nwn-dotnet/Anvil/compare/v8193.34.4...v8193.34.5
8+
9+ ### Added
10+ - ` NwCreature.Encounter ` : Gets the encounter that spawned the creature.
11+
612## 8193.34.4
713https://github.com/nwn-dotnet/Anvil/compare/v8193.34.3...v8193.34.4
814
Original file line number Diff line number Diff line change @@ -271,6 +271,11 @@ public string DialogResRef
271271 /// </summary>
272272 public bool Disarmable => NWScript . GetIsCreatureDisarmable ( this ) . ToBool ( ) ;
273273
274+ /// <summary>
275+ /// Gets the encounter that spawned this creature.
276+ /// </summary>
277+ public NwEncounter Encounter => Creature . m_oidEncounter . ToNwObject < NwEncounter > ( ) ;
278+
274279 /// <summary>
275280 /// Gets or sets a value indicating whether this creature will auto-explore the minimap as it walks around.
276281 /// </summary>
You can’t perform that action at this time.
0 commit comments