public override void ApplyEffectKind(Person person, Event e) { Treasure t = person.Scenario.Treasures.GetGameObject(type) as Treasure; if (t.BelongedPerson != null && t.BelongedPerson == person) { person.LoseTreasure(t); t.Available = false; t.HidePlace = person.Scenario.Architectures.GameObjects[GameObject.Random(person.Scenario.Architectures.GameObjects.Count)] as Architecture; } }