During compiling DOL (the last svn release) under linux (ubuntu 13.04) i found this error and solving whit implicit cast but not sure this fix is a best solution.
Error 1
ai/brain/StandardMobBrain.cs(992,70): error CS0172: Type of conditional expression cannot be determined as `int' and `byte' convert implicitly to each other
change line 992 from
- Code: Select all
int numAttackers = (attackerGroup == null) ? 1 : attackerGroup.MemberCount;
- Code: Select all
int numAttackers = (attackerGroup == null) ? 1 : (int)attackerGroup.MemberCount;
gameobjects/GameLiving.cs(2939,93): error CS0172: Type of conditional expression cannot be determined as `byte' and `int' convert implicitly to each other
gameobjects/GameLiving.cs(2939,52): error CS1502: The best overloaded method match for `System.Math.Ceiling(decimal)' has some invalid arguments
gameobjects/GameLiving.cs(2939,52): error CS1503: Argument `#1' cannot convert `object' expression to type `decimal'
change line 2939 from
- Code: Select all
int procChance = (int)Math.Ceiling(((weapon.ProcChance > 0 ? weapon.ProcChance : 10) * (weapon.SPD_ABS / 35.0)));
- Code: Select all
int procChance = (int)Math.Ceiling((((int)weapon.ProcChance > 0 ? (int)weapon.ProcChance : 10) * (weapon.SPD_ABS / 35.0)));
gameobjects/GamePlayer.cs(7065,121): error CS0172: Type of conditional expression cannot be determined as `byte' and `int' convert implicitly to each other
change line 7065 from
- Code: Select all
int chance = reactiveItem.ProcChance > 0 ? reactiveItem.ProcChance : 10;
- Code: Select all
int chance = (int)reactiveItem.ProcChance > 0 ? (int)reactiveItem.ProcChance : 10;
gameobjects/GamePlayer.cs(7084,121): error CS0172: Type of conditional expression cannot be determined as `byte' and `int' convert implicitly to each other
change line 7084 from
- Code: Select all
int chance = reactiveItem.ProcChance > 0 ? reactiveItem.ProcChance : 10;
- Code: Select all
int chance = (int)reactiveItem.ProcChance > 0 ? (int)reactiveItem.ProcChance : 10;
-----
Destiny