Skip to content

Commit d72d6ff

Browse files
committed
Merge branch 'development'
2 parents c29b1ec + e0fd0a6 commit d72d6ff

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
33

44
The 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
713
https://github.com/nwn-dotnet/Anvil/compare/v8193.34.3...v8193.34.4
814

NWN.Anvil/src/main/API/Object/NwCreature.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)