public override void OnDeath(Container c) { base.OnDeath(c); if (Utility.Random(10) == 0) { Item item; switch (Utility.Random(3)) { default: case 1: item = new JonahNote1(); break; case 2: item = new JonahNote2(); break; case 3: item = new JonahNote3(); break; } c.DropItem(item); // TODO: uncomment once added /* * if (Utility.RandomDouble() < 0.15) * c.DropItem(new DisintegratingThesisNotes()); * * if (Utility.RandomDouble() < 0.05) * c.DropItem(new AssassinChest()); */ } base.OnDeath(c); }
public override void OnDeath(Container c) { if (Utility.Random(10) == 0) { Item item; switch (Utility.Random(3)) { default: case 1: item = new JonahNote1(); break; case 2: item = new JonahNote2(); break; case 3: item = new JonahNote3(); break; } c.DropItem(item); } base.OnDeath(c); }