Skip to content

Commit

Permalink
Merge pull request #1655 from Daztek/build8193.35-40
Browse files Browse the repository at this point in the history
build8193.35.40 support
  • Loading branch information
Daztek authored May 18, 2023
2 parents f751856 + c88d1b5 commit f1b527f
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 20 deletions.
35 changes: 25 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,31 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased
https://github.com/nwnxee/unified/compare/build8193.35.37...HEAD
https://github.com/nwnxee/unified/compare/build8193.35.40...HEAD

### Added
- N/A

##### New Plugins
- N/A

##### New NWScript Functions
- N/A

### Changed
- N/A

### Deprecated
- N/A

### Removed
- N/A

### Fixed
- N/A

## 8193.35.40
https://github.com/nwnxee/unified/compare/build8193.35.37...build8193.35.40

### Added
- Tweaks: added `NWNX_TWEAKS_RANGED_WEAPONS_USE_ON_HIT_EFFECT_ITEM_PROPERTIES` which makes all bows, crossbows, and slings use On Hit: Effect item properties (in addition to their ammunition).
Expand All @@ -17,9 +41,6 @@ https://github.com/nwnxee/unified/compare/build8193.35.37...HEAD
- Events: added skippable event `NWNX_ON_AREA_PLAY_BATTLE_MUSIC_{BEFORE|AFTER}` which allows skipping the starting/stopping of an area's battle music.
- Experimental: Added `NWNX_EXPERIMENTAL_END_COMBATROUND_AFTER_SPELLCAST` to end combat rounds right after casting or canceling a spell so that a new spell can be cast immediately after

##### New Plugins
- N/A

##### New NWScript Functions
- Object: GetInventoryItemCount()
- Object: OverrideSpellProjectileVFX()
Expand All @@ -33,12 +54,6 @@ https://github.com/nwnxee/unified/compare/build8193.35.37...HEAD
- ***ABI BREAKING:*** Creature: DoItemCastSpell() can now override the spell impact script, and set the spell cast item retrieved by GetSpellCastItem().
- ***ABI BREAKING:*** Damage: SetAttackEventData() can now set `AttackEventData.iSneakAttack`. This only affects the attack roll message and floating text feedback. Immunities and damage will have already been resolved by the time the attack event script is ran.

### Deprecated
- N/A

### Removed
- N/A

### Fixed
- Tweaks: FixResolveSpecialAttackDamage: fixed a crash involving ranged special attacks interacting oddly with Epic Dodge.
- Player: fixed ToggleDM() not working correctly with EffectTimeStopImmunity().
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ find_package(Sanitizers)
execute_process(COMMAND git rev-parse --short HEAD OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE SHORT_HASH)
set(TARGET_NWN_BUILD 8193)
set(TARGET_NWN_BUILD_REVISION 35)
set(TARGET_NWN_BUILD_POSTFIX 37)
set(TARGET_NWN_BUILD_POSTFIX 40)
set(NWNX_BUILD_SHA ${SHORT_HASH})
set(PLUGIN_PREFIX NWNX_)

Expand Down
1 change: 1 addition & 0 deletions NWNXLib/API/API/CNWSCreature.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ struct CNWSCreature : CNWSObject
void UpdatePersonalSpace();
void UpdateAppearanceDependantInfo();
CNWSJournal * GetJournal();
void ReloadJournalEntries();
CNWSBarter * GetBarterInfo(BOOL bCreateIfNonExistant = true);
BOOL StartBarter(OBJECT_ID oidTarget, OBJECT_ID oidItem, BOOL bFromActionQueue = false);
void ClearHostileActionsVersus(CNWSCreature * pCreature);
Expand Down
13 changes: 7 additions & 6 deletions Plugins/Tweaks/FixTURDEffectUnlinking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,18 @@ void FixTURDEffectUnlinking()
pCreature->SetOrientation(pTURD->m_vOrientation);

pCreature->CopyScriptVars(&pTURD->m_ScriptVars);
pCreature->ReloadJournalEntries();
pCreature->SetAutoMapData(pTURD->m_nNumAutomapAreas, pTURD->m_poidAutomapAreasList, pTURD->m_pAutoMapTileData);

for (int i = 0; i < pTURD->m_appliedEffects.num; i++)
{
auto *pEffect = new CGameEffect(false);
pEffect->CopyEffect(pTURD->m_appliedEffects.element[i]);

auto *pEffect = pTURD->m_appliedEffects.element[i];
if (!pEffect->m_bSkipOnLoad && pEffect->GetDurationType() != Constants::EffectDurationType::Equipped)
pCreature->ApplyEffect(pEffect, true);
else
delete pEffect;
{
auto *pNewEffect = new CGameEffect(false);
pNewEffect->CopyEffect(pEffect);
pCreature->ApplyEffect(pNewEffect, true);
}
}

while (!pCreature->m_lQueuedActions.IsEmpty())
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[![Discord](https://img.shields.io/discord/382306806866771978.svg?colorB=7289DA&label=Discord&logo=Discord&logoColor=7289DA&style=flat-square)](https://discord.gg/hxTt8Fr)

# NWNX:EE (build 8193.35.37 - v87 - DEVELOPMENT)
# NWNX:EE (build 8193.35.40 - v87 - DEVELOPMENT)

- Latest release: [build8193.35.37-HEAD](https://github.com/nwnxee/unified/releases/latest) - [Changelog](https://github.com/nwnxee/unified/blob/master/CHANGELOG.md#Unreleased)
- Latest release: [build8193.35.40-HEAD](https://github.com/nwnxee/unified/releases/latest) - [Changelog](https://github.com/nwnxee/unified/blob/master/CHANGELOG.md#Unreleased)
- Docker tag: `nwnxee/unified:latest`
- nwserver-linux md5: `9cb509dd3770dff85d86f9460fcc1335`
- nwserver-linux md5: `6272baef33b3271e9b0ad7bf54b90f33`

@mainpage
@tableofcontents
Expand Down

0 comments on commit f1b527f

Please sign in to comment.