Update to .NET 8; Check for housing void fog to avoid false positives
This commit is contained in:
parent
f78090c455
commit
51adb846e4
@ -162,7 +162,26 @@ public sealed unsafe class Plugin : IDalamudPlugin
|
|||||||
|
|
||||||
var exec = _envStateCopyHook.Original(dest, src);
|
var exec = _envStateCopyHook.Original(dest, src);
|
||||||
|
|
||||||
if (dest->SkyId == 0 || Preview != null)
|
var replace = Preview != null;
|
||||||
|
|
||||||
|
if (!Service.ClientState.IsLoggedIn)
|
||||||
|
{
|
||||||
|
replace |= dest->SkyId == 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
replace |=
|
||||||
|
dest->SkyId == 0 &&
|
||||||
|
dest->Fog.Color == new Vector4(0, 0, 0, 1.0f) &&
|
||||||
|
dest->Fog.Distance == 50.0f &&
|
||||||
|
dest->Fog.Thickness == 5.0f &&
|
||||||
|
dest->Fog._unk1 == 1000.0f &&
|
||||||
|
dest->Fog._unk2 == 1.0f &&
|
||||||
|
dest->Fog.Opacity == 0.0f &&
|
||||||
|
dest->Fog.SkyVisibility == 0.0f;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (replace)
|
||||||
{
|
{
|
||||||
Replace(dest);
|
Replace(dest);
|
||||||
}
|
}
|
||||||
|
@ -3,14 +3,14 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Authors>0x0ade</Authors>
|
<Authors>0x0ade</Authors>
|
||||||
<Company></Company>
|
<Company></Company>
|
||||||
<Version>0.1.0.5</Version>
|
<Version>0.1.0.6</Version>
|
||||||
<Description></Description>
|
<Description></Description>
|
||||||
<Copyright></Copyright>
|
<Copyright></Copyright>
|
||||||
<PackageProjectUrl></PackageProjectUrl>
|
<PackageProjectUrl></PackageProjectUrl>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net7.0-windows</TargetFramework>
|
<TargetFramework>net8.0-windows</TargetFramework>
|
||||||
<Platforms>x64</Platforms>
|
<Platforms>x64</Platforms>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"net7.0-windows7.0": {
|
"net8.0-windows7.0": {
|
||||||
"DalamudPackager": {
|
"DalamudPackager": {
|
||||||
"type": "Direct",
|
"type": "Direct",
|
||||||
"requested": "[2.1.12, )",
|
"requested": "[2.1.12, )",
|
||||||
|
Loading…
Reference in New Issue
Block a user