コード例 #1
0
        private async Task onInventoryCombination(InventoryCombinationEventArgs args)
        {
            if (string.IsNullOrEmpty(args.ActiveItem.Graphics.DisplayName) ||
                string.IsNullOrEmpty(args.PassiveItem.Graphics.DisplayName))
            {
                await _game.State.Player.SayAsync("I don't think these two items go together.");

                return;
            }

            await _game.State.Player.SayAsync($"Use {args.ActiveItem.Graphics.DisplayName} on {args.PassiveItem.Graphics.DisplayName}? I don't get it...");
        }
コード例 #2
0
        private async Task onInventoryCombination(object sender, InventoryCombinationEventArgs args)
        {
            if (string.IsNullOrEmpty(args.ActiveItem.Graphics.Hotspot) ||
                string.IsNullOrEmpty(args.PassiveItem.Graphics.Hotspot))
            {
                await _game.State.Player.SayAsync("I don't think these two items go together.");

                return;
            }

            await _game.State.Player.SayAsync(string.Format("Use {0} on {1}? I don't get it...",
                                                            args.ActiveItem.Graphics.Hotspot, args.PassiveItem.Graphics.Hotspot));
        }
コード例 #3
0
 private async Task onPutPosterInManual(InventoryCombinationEventArgs args)
 {
     await Characters.Cris.SayAsync("I don't see a reason to put the poster in the manual.");
 }