diff options
Diffstat (limited to 'DTPhysicalStack.c')
| -rw-r--r-- | DTPhysicalStack.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/DTPhysicalStack.c b/DTPhysicalStack.c index c0aa7ad..327dfd0 100644 --- a/DTPhysicalStack.c +++ b/DTPhysicalStack.c @@ -10,14 +10,14 @@ global func AddPhysicalFactor(string physical, int factor, int precision, object {
target = target || this || FatalError("AddPhysicalFactor: no target object given");
precision = precision || 100;
-
+
return EffectCall(target, GetPhysicalFactorStack(target), "AddFactor", physical, factor, precision);
}
global func RemovePhysicalFactor(int id, object target)
{
target = target || this || FatalError("AddPhysicalFactor: no target object given");
-
+
return EffectCall(target, GetPhysicalFactorStack(target), "RemoveFactor", id);
}
@@ -31,7 +31,7 @@ global func FxPhysicalFactorStackStart(object target, int effectNumber, int temp global func FxPhysicalFactorStackAddFactor(object target, int effectNumber, string physical, int factor, int precision)
{
- ArrayAppend(EffectVar(1, target, effectNumber), [++EffectVar(0, target, effectNumber), physical, factor, precision]);
+ EffectVar(1, target, effectNumber)[] = [++EffectVar(0, target, effectNumber), physical, factor, precision];
EffectCall(target, effectNumber, "ApplyPhysical", physical);
return EffectVar(0, target, effectNumber);
}
|
