|
|
|
@ -30,27 +30,6 @@ Event OnEffectStart(Actor akTarget, Actor akCaster) |
|
|
|
|
|
|
|
|
|
EndEvent |
|
|
|
|
|
|
|
|
|
Float Function GetCurrentWeight(Actor akActor) |
|
|
|
|
|
|
|
|
|
Int NumItems = akActor.GetNumItems() |
|
|
|
|
Int i = 0 |
|
|
|
|
Float fCurrentWeight |
|
|
|
|
|
|
|
|
|
While (i < NumItems) |
|
|
|
|
|
|
|
|
|
Form Entry = akActor.GetNthForm(i) |
|
|
|
|
Float fEntryItemCount = akActor.GetItemCount(Entry) as Float |
|
|
|
|
; iCurrentWeight += math.Ceiling(Entry.GetWeight() * iEntryItemCount) |
|
|
|
|
fCurrentWeight += Entry.GetWeight() * fEntryItemCount |
|
|
|
|
|
|
|
|
|
i += 1 |
|
|
|
|
|
|
|
|
|
EndWhile |
|
|
|
|
|
|
|
|
|
Return fCurrentWeight |
|
|
|
|
|
|
|
|
|
EndFunction |
|
|
|
|
|
|
|
|
|
;===================================================================================== |
|
|
|
|
; PROPERTIES |
|
|
|
|
;===================================================================================== |
|
|
|
|