diff --git a/source/tools/entity/Entity.pm b/source/tools/entity/Entity.pm index d4aa4689bb..3074f221fa 100644 --- a/source/tools/entity/Entity.pm +++ b/source/tools/entity/Entity.pm @@ -99,6 +99,11 @@ sub apply_layer elsif ($op eq 'mul') { $base->{' content'} = $op1 * $op2; } + elsif ($op eq 'mul_round') { + # This is incorrect (floors instead of rounding) + # but for schema purposes it ought be fine. + $base->{' content'} = int($op1 * $op2); + } else { die "Invalid operator '$op'"; }