Exemple #1
0
        public void Execute(CommodityVO reward)
        {
            FactionType faction;

            if (reward.ID == null || !Enum.TryParse <FactionType>(reward.ID, ignoreCase: true, out faction))
            {
                faction = AmbitionApp.GetModel <PartyModel>().Party?.Faction ?? FactionType.None;
            }
            GossipVO gossip = new GossipVO()
            {
                Faction = faction,
                Tier    = reward.Value
            };

            AmbitionApp.SendMessage(InventoryMessages.CREATE_GOSSIP, gossip);
        }
Exemple #2
0
 private void OnSellGossip(GossipVO gossip) => Activate();
Exemple #3
0
 private void OnDisplayGossip(GossipVO gossip) => Activate();