Removed unused _00E_RestoreCooldownSelfSC

This commit is contained in:
Eddoursul 2024-02-11 07:43:23 +01:00
parent b1e0dac27a
commit d32ed140fe
3 changed files with 0 additions and 27 deletions

View File

@ -1286,7 +1286,6 @@ scripts\_00e_questupdateontriggercomplex.pex
scripts\_00e_randomconv_debugtrackingsc.pex
scripts\_00e_removesilenceandcombatsoundtrack.pex
scripts\_00e_rentroomscript.pex
scripts\_00e_restorecooldownselfsc.pex
scripts\_00e_rotatearoundownaxis.pex
scripts\_00E_SafeItemRemove.pex
scripts\_00e_scenestartscript.pex

View File

@ -1,26 +0,0 @@
Scriptname _00E_RestoreCooldownSelfSC extends activemagiceffect
Event OnEffectStart(actor akTarget, Actor akCaster)
float ManaRequired = PlayerREF.GetBaseActorValue("Magicka")*(_10E_ChannelEnergy.GetNthEffectMagnitude(1)/100)
if (PlayerREF.GetActorValue("Magicka") <= ManaRequired)
MAGFail.Play(PlayerREF)
Debug.Notification("Nicht genug Mana!")
Else
MAGAlterationReleaseSDM.Play(PlayerREF)
AbsorbBlueFXS.Play(PlayerREF)
Float iQuicken = _10E_ChannelEnergy.GetNthEffectMagnitude(0)
; Debug.MessageBox("Player cooldown is" + (PlayerREF.GetVoiceRecoveryTime() as Int) + ", quicken by " + iQuicken as Int)
Float Manacost = Self.GetMagnitude()
PlayerREF.SetVoiceRecoveryTime((PlayerRef.GetVoiceRecoveryTime() - iQuicken))
PlayerREF.DamageActorValue("Magicka", ManaRequired)
EndIf
EndEvent
Actor Property PlayerREF Auto
Spell Property _10E_ChannelEnergy Auto
Sound Property MAGFail Auto
Sound Property MAGAlterationReleaseSDM Auto
EffectShader Property AbsorbBlueFXS Auto