Fixes several more expression issues and cast type check merges.
This commit is contained in:
parent
f93c3b992e
commit
9542c79ea4
24 changed files with 106 additions and 145 deletions
|
|
@ -69,10 +69,10 @@ namespace Server.Mobiles
|
|||
|
||||
Item artifact = Loot.Construct(type);
|
||||
|
||||
if (artifact is MonsterStatuette && StatueTypes.Length > 0)
|
||||
if (artifact is MonsterStatuette statuette && StatueTypes.Length > 0)
|
||||
{
|
||||
((MonsterStatuette)artifact).Type = StatueTypes[Utility.Random(StatueTypes.Length)];
|
||||
((MonsterStatuette)artifact).LootType = LootType.Regular;
|
||||
statuette.Type = StatueTypes[Utility.Random(StatueTypes.Length)];
|
||||
statuette.LootType = LootType.Regular;
|
||||
}
|
||||
|
||||
return artifact;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue