public void BurnSplinters(IPlayer sender, Splinters splinters) { sender.Transfer(splinters, Game.EntryHall); this.Burning = true; sender.Reply($"The smoldering ash is hot enough to make the splinters catch fire. The fire is burning again."); Game.BroadcastMsg($"{sender} lighted the {this} in the {Game.Kitchen}"); }
public override void Use(IPlayer sender, IThing other) { Action action = other switch { Splinters splinters => () => BurnSplinters(sender, splinters), Tofu tofu => () => BurnTofu(sender, tofu), _ => () => { } }; action(); }
public void BurnSplinters(IPlayer sender, Splinters splinters) { sender.Inventory.Transfer(splinters, Game.DiningRoom.Inventory); this.Burning = true; sender.Reply($"The smoldering ash is hot enough to make the splinters catch fire. The fire is burning again."); }