fix: Fixes tests for armor/weapons (#2511)
This commit is contained in:
parent
0bfbdd0764
commit
e42a62b1d3
2 changed files with 2 additions and 2 deletions
|
|
@ -62,7 +62,7 @@ public class AosArmorAttributesPropertiesTests
|
|||
var attrs = new AosArmorAttributes(null) { MageArmor = 1, LowerStatReq = 50 };
|
||||
|
||||
var opl = new ObjectPropertyList(null);
|
||||
attrs.GetProperties(opl, lowerStatReq: 77); // computed value passed by the consumer, not the raw 50
|
||||
attrs.GetProperties(opl); // computed value passed by the consumer, not the raw 50
|
||||
var map = Decode(opl);
|
||||
|
||||
Assert.Equal("77", map[1060435]); // emitted from the param, not the container's 50
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ public class AosWeaponAttributesPropertiesTests
|
|||
var attrs = new AosWeaponAttributes(null) { MageWeapon = 25 };
|
||||
|
||||
var opl = new ObjectPropertyList(null);
|
||||
attrs.GetProperties(opl, lowerStatReq: 40); // computed value passed by the weapon
|
||||
attrs.GetProperties(opl); // computed value passed by the weapon
|
||||
var map = Decode(opl);
|
||||
|
||||
Assert.Equal("40", map[1060435]); // lower requirements, in cliloc order before MageWeapon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue