Skip to content

Commit

Permalink
v0.34
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyHorizon3 committed Jun 22, 2024
1 parent 8bb6386 commit 67a2008
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 649 deletions.
541 changes: 0 additions & 541 deletions !Update.ps1

This file was deleted.

101 changes: 0 additions & 101 deletions .clang-format

This file was deleted.

1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.21)
project(MaxsuPoise VERSION 0.3.2 LANGUAGES CXX)
project(MaxsuPoise VERSION 0.3.4 LANGUAGES CXX)

# Set your project version and specify C++ standard
set(CMAKE_CXX_STANDARD 23)
Expand Down
2 changes: 1 addition & 1 deletion extern/CommonLibSSE-NG
12 changes: 10 additions & 2 deletions src/SettingsHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ namespace MaxsuPoise
auto& WeapTypeEnumTbl = dku::static_enum<WEAPON_TYPE>();

CSimpleIniA ini;
ini.LoadFile(fileName); // Load the ini file
if (ini.LoadFile(fileName)) // Load the ini file
ERROR("Get Error When loading file {}", fileName);

// get a pointer to the "WeaponTypeMult" section
const CSimpleIniA::TKeyVal* section = ini.GetSection("WeaponTypeMult");
if (!section) {
return;
}

// iterate through the key-value pairs in the section
for (CSimpleIniA::TKeyVal::const_iterator it = section->begin(); it != section->end(); ++it) {
Expand All @@ -52,10 +56,14 @@ namespace MaxsuPoise
auto& BipeSlotEnumTbl = dku::static_enum<BipedSlot>();

CSimpleIniA ini;
ini.LoadFile(armorSlotFile); // Load the ini file
if (ini.LoadFile(armorSlotFile)) // Load the ini file
ERROR("Get Error When loading file {}", armorSlotFile);

// get a pointer to the "ArmorSlotMult" section
const CSimpleIniA::TKeyVal* section = ini.GetSection("ArmorSlotMult");
if (!section) {
return;
}

// iterate through the key-value pairs in the section
for (CSimpleIniA::TKeyVal::const_iterator it = section->begin(); it != section->end(); ++it) {
Expand Down
7 changes: 7 additions & 0 deletions src/StaggerHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ namespace MaxsuPoise
if (!a_target)
return;

if (a_staggerMult <= 0.f) {
return;
}

if (a_target == a_aggressor)
a_aggressor = nullptr;

auto staggerProtectTime = StaggerProtectHandler::GetStaggerProtectTimer(a_target);
if (staggerProtectTime > 0.f && a_target->IsStaggering())
return;
Expand Down
2 changes: 1 addition & 1 deletion src/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace MaxsuPoise
if (!a_target || !a_target->GetActorRuntimeData().race)
return 0.f;

return a_target->GetActorRuntimeData().race->data.baseMass;
return a_target->AsActorValueOwner()->GetActorValue(RE::ActorValue::kMass);
}

void CPrint(const char* a_fmt, ...)
Expand Down
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maxsupoise",
"version-semver": "0.3.2",
"version-semver": "0.3.4",
"description": "",
"license": "MIT",
"dependencies": [
Expand Down

0 comments on commit 67a2008

Please sign in to comment.