lua/wrappers/game/lua_stat_modifier.cpp
/**
	 * Compares this stat modifier with the given one.
	 * Unlike many of the other Lua objects, this comparison will check
	 * if the objects are equivalent.
	 * <pre>
	 * mod1 = am.stat_modifier.new(5, "+")
	 * mod2 = am.stat_modifier.new(5, "+")
	 * mod3 = am.stat_modifier.new(5, "*")
	 * am_log("Mod 1 == Mod 2? " .. (mod1 == mod2)) -- Output "Mod 1 == Mod 2? true"
	 * am_log("Mod 1 == Mod 3? " .. (mod1 == mod3)) -- Output "Mod 1 == Mod 3? false"
	 * am_log("Mod 2 == Mod 3? " .. (mod2 == mod2)) -- Output "Mod 2 == Mod 3? false"
	 * </pre>
	 * @param am.stat_modifier modifiers The other stat modifiers object to compare with.
	 * @returns boolean True if they are the same stat modifiers object.
	 */
Compares this stat modifier with the given one.
Unlike many of the other Lua objects, this comparison will check
if the objects are equivalent.
Compares this stat modifier with the given one . Unlike many of the other Lua objects this comparison will check if the objects are equivalent .
int StatModifier_eq(lua_State *lua)
	{
		StatModifier *lhs = castUData<StatModifier>(lua, 1);
		if (!lhs)
		{
			return LuaState::expectedContext(lua, "__eq", "am.stat_modifier");
		}
		StatModifier *rhs = castUData<StatModifier>(lua, 2);
		lua_pushboolean(lua, lhs && rhs && (*lhs == *rhs));
		return 1;
	}
int StatModifier_eq ( lua_State * lua ) { StatModifier * lhs = castUData < StatModifier > ( lua , 1 ) ; if ( ! lhs ) { return LuaState :: expectedContext ( lua , " " , " " ) ; } StatModifier * rhs = castUData < StatModifier > ( lua , 2 ) ; lua_pushboolean ( lua , lhs && rhs && ( * lhs == * rhs ) ) ; return 1 ; }
Compares this stat modifier with the given one.
Compares this stat modifier with the given one .