small fix to aswin aura
This commit is contained in:
parent
17fdeba320
commit
272adddd75
2 changed files with 14 additions and 12 deletions
|
|
@ -133,10 +133,15 @@ namespace RacesOfValheim
|
|||
if (c != null)
|
||||
{
|
||||
float foodHp = Mathf.Min(c.m_health / 2f, 150f);
|
||||
float burnTime = c.m_health * 2f;
|
||||
if (mobName == "Cultist" || mobName.StartsWith("Fenring") || mobName.StartsWith("Fuling"))
|
||||
{
|
||||
burnTime = 1200f; // 20 minutes
|
||||
}
|
||||
customItem.ItemDrop.m_itemData.m_shared.m_food = foodHp;
|
||||
customItem.ItemDrop.m_itemData.m_shared.m_foodStamina = 0f;
|
||||
customItem.ItemDrop.m_itemData.m_shared.m_foodEitr = 0f;
|
||||
customItem.ItemDrop.m_itemData.m_shared.m_foodBurnTime = c.m_health * 2f;
|
||||
customItem.ItemDrop.m_itemData.m_shared.m_foodBurnTime = burnTime;
|
||||
customItem.ItemDrop.m_itemData.m_shared.m_foodRegen = 1f;
|
||||
}
|
||||
}
|
||||
|
|
@ -1030,13 +1035,14 @@ namespace RacesOfValheim
|
|||
float maxHp = c.GetMaxHealth();
|
||||
float currentHp = c.GetHealth();
|
||||
|
||||
float baseDamage = 1.0f; // Reduced by 50%
|
||||
float baseDamage = 2.0f;
|
||||
float bloodMagicFactor = Player.m_localPlayer.GetSkillFactor(Skills.SkillType.BloodMagic);
|
||||
float totalDamage = baseDamage + (baseDamage * bloodMagicFactor);
|
||||
// Lo scaling aggiunge un massimo di +1.0 danni (al livello 100), indipendentemente dal danno base
|
||||
float totalDamage = baseDamage + bloodMagicFactor;
|
||||
|
||||
if (Player.m_localPlayer.GetSEMan().HaveStatusEffect("SE_MistForm".GetStableHashCode()))
|
||||
{
|
||||
totalDamage *= 0.5f;
|
||||
totalDamage *= 2.0f; // Damage doubled in Mist Form
|
||||
}
|
||||
|
||||
if (currentHp > 0 && currentHp <= maxHp * 0.20f && !c.IsBoss())
|
||||
|
|
|
|||
|
|
@ -93,15 +93,11 @@
|
|||
<CallTarget Targets="CopyToUnity" Condition="Exists('$(UNITY_FOLDER)')" />
|
||||
</Target>
|
||||
|
||||
<Target Name="PackageThunderstore" AfterTargets="Build" Condition="'$(Configuration)'=='Release'">
|
||||
<PropertyGroup>
|
||||
<PackageOutputDir>$(SolutionDir)dist\</PackageOutputDir>
|
||||
</PropertyGroup>
|
||||
<MakeDir Directories="$(PackageOutputDir)" Condition="!Exists('$(PackageOutputDir)')" />
|
||||
<Target Name="PackageThunderstore" AfterTargets="Build">
|
||||
<Message Text="Packaging Thunderstore and Nexus Zips..." Importance="high" />
|
||||
<Exec Command="powershell -NoProfile -Command "Compress-Archive -Path '$(TargetDir)$(TargetName).dll', '$(ProjectDir)..\manifest.json', '$(ProjectDir)..\README.md', '$(ProjectDir)Package\icon.png' -DestinationPath '$(PackageOutputDir)RacesOfValheim_Thunderstore.zip' -Force; Compress-Archive -Path '$(TargetDir)$(TargetName).dll' -DestinationPath '$(PackageOutputDir)RacesOfValheim_Nexus.zip' -Force"" />
|
||||
<Message Text="Copying DLL to Valheim BepInEx plugins..." Importance="high" Condition="Exists('$(VALHEIM_INSTALL)\BepInEx\plugins')" />
|
||||
<Copy SourceFiles="$(TargetDir)$(TargetName).dll" DestinationFolder="$(VALHEIM_INSTALL)\BepInEx\plugins\" Condition="Exists('$(VALHEIM_INSTALL)\BepInEx\plugins')" />
|
||||
<Exec Command="powershell -Command "if (!(Test-Path 'C:\Users\FERDINANDO\Desktop\Pacchetto_Rame\racesofvalheim')) { New-Item -ItemType Directory -Force -Path 'C:\Users\FERDINANDO\Desktop\Pacchetto_Rame\racesofvalheim' }; Compress-Archive -Path '$(TargetDir)$(TargetName).dll', '$(ProjectDir)..\manifest.json', '$(ProjectDir)..\README.md', '$(ProjectDir)Package\icon.png' -DestinationPath 'C:\Users\FERDINANDO\Desktop\Pacchetto_Rame\racesofvalheim\RacesOfValheim_Thunderstore.zip' -Force; Compress-Archive -Path '$(TargetDir)$(TargetName).dll' -DestinationPath 'C:\Users\FERDINANDO\Desktop\Pacchetto_Rame\racesofvalheim\RacesOfValheim_Nexus.zip' -Force"" />
|
||||
<Message Text="Copying DLL to Valheim BepInEx plugins..." Importance="high" />
|
||||
<Copy SourceFiles="$(TargetDir)$(TargetName).dll" DestinationFolder="C:\Program Files (x86)\Steam\steamapps\common\Valheim\BepInEx\plugins\" />
|
||||
</Target>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue