mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Added ^ power operator,
Added abs, random_int, random_real, random_shuffle, random_select script functions. Made == comparison of doubles use a small epsilon, so things like 3/2 == 1.5 are actually true. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1013 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -63,6 +63,7 @@ enum BinaryInstructionType
|
||||
, I_FDIV ///< floating point division
|
||||
, I_DIV ///< integer division
|
||||
, I_MOD ///< modulus
|
||||
, I_POW ///< power
|
||||
// Logical
|
||||
, I_AND ///< logical and
|
||||
, I_OR ///< logical or
|
||||
@@ -116,6 +117,8 @@ enum Variable
|
||||
, SCRIPT_VAR_in_context
|
||||
, SCRIPT_VAR_recursive
|
||||
, SCRIPT_VAR_order
|
||||
, SCRIPT_VAR_begin
|
||||
, SCRIPT_VAR_end
|
||||
, SCRIPT_VAR_filter
|
||||
, SCRIPT_VAR_choice
|
||||
, SCRIPT_VAR_choices
|
||||
|
||||
Reference in New Issue
Block a user