public PlanetCommands(ServiceProvider services) { Client = services.GetRequiredService <DiscordSocketClient>(); var hooks = services.GetRequiredService <HookedEvents>(); if (!hooks.PlanetReactions) { hooks.PlanetReactions = true; var reactionService = services.GetRequiredService <ReactionService>(); ReactionEvent reaction1 = new ReactionEventBuilder().WithEmoji(oneEmoji).WithEvent(PlanetReactionHandler).Build(); ReactionEvent reaction2 = new ReactionEventBuilder().WithEmoji(twoEmoji).WithEvent(PlanetReactionHandler).Build(); ReactionEvent reaction3 = new ReactionEventBuilder().WithEmoji(threeEmoji).WithEvent(PlanetReactionHandler).Build(); ReactionEvent look = new ReactionEventBuilder().WithEmoji("🔍").WithEvent(PlanetReactionHandler).Build(); ReactionEvent Life = new ReactionEventBuilder().WithEmoji("\U0001F996").WithEvent(PlanetReactionHandler).Build(); ReactionEvent biome = new ReactionEventBuilder().WithEmoji("\uD83C\uDF0D").WithEvent(PlanetReactionHandler).Build(); reactionService.reactionList.Add(reaction1); reactionService.reactionList.Add(reaction2); reactionService.reactionList.Add(reaction3); reactionService.reactionList.Add(look); reactionService.reactionList.Add(Life); reactionService.reactionList.Add(biome); } Services = services; }
public IronNPC(IServiceProvider serviceProvider) { Services = serviceProvider; ReactionsToAdd = new IEmote[] { descEmoji, dispositionEmoji, activityEmoji, goalEmoji, roleEmoji }; var hooks = serviceProvider.GetRequiredService <HookedEvents>(); if (!hooks.IronNpcReactions) { var reactionService = serviceProvider.GetRequiredService <ReactionService>(); ReactionEvent descReaction = new ReactionEventBuilder().WithEmote(descEmoji).WithEvent(DescHandler).Build(); ReactionEvent dispositionReaction = new ReactionEventBuilder().WithEmote(dispositionEmoji).WithEvent(DispositionHandler).Build(); ReactionEvent activityReaction = new ReactionEventBuilder().WithEmote(activityEmoji).WithEvent(ActivityHandler).Build(); ReactionEvent goalReaction = new ReactionEventBuilder().WithEmote(goalEmoji).WithEvent(GoalHandler).Build(); ReactionEvent roleReaction = new ReactionEventBuilder().WithEmote(roleEmoji).WithEvent(RoleHandler).Build(); reactionService.reactionList.Add(descReaction); reactionService.reactionList.Add(dispositionReaction); reactionService.reactionList.Add(activityReaction); reactionService.reactionList.Add(goalReaction); reactionService.reactionList.Add(roleReaction); hooks.IronNpcReactions = true; } }
public StarfrogedCreatureCommands(ServiceProvider services) { var hooks = services.GetRequiredService <HookedEvents>(); if (!hooks.StarCreatureReactions) { var client = services.GetRequiredService <DiscordSocketClient>(); var reactionService = services.GetRequiredService <ReactionService>(); ReactionEvent reaction1 = new ReactionEventBuilder().WithEmote(oneEmoji).WithEvent(CreatureReactionHandler).Build(); ReactionEvent reaction2 = new ReactionEventBuilder().WithEmote(twoEmoji).WithEvent(CreatureReactionHandler).Build(); ReactionEvent reaction3 = new ReactionEventBuilder().WithEmote(threeEmoji).WithEvent(CreatureReactionHandler).Build(); ReactionEvent reaction4 = new ReactionEventBuilder().WithEmote(fourEmoji).WithEvent(CreatureReactionHandler).Build(); ReactionEvent reaction5 = new ReactionEventBuilder().WithEmote(fiveEmoji).WithEvent(CreatureReactionHandler).Build(); ReactionEvent randomRoll = new ReactionEventBuilder().WithEmote(randomEmoji).WithEvent(CreatureReactionHandler).Build(); ReactionEvent reveal = new ReactionEventBuilder().WithEmote(revealAspectEmoji).WithEvent(CreatureReactionHandler).Build(); reactionService.reactionList.Add(reaction1); reactionService.reactionList.Add(reaction2); reactionService.reactionList.Add(reaction3); reactionService.reactionList.Add(reaction4); reactionService.reactionList.Add(reaction5); reactionService.reactionList.Add(randomRoll); reactionService.reactionList.Add(reveal); hooks.StarCreatureReactions = true; } Services = services; }
public PlayerShipCommands(IServiceProvider services) { Services = services; OracleService = Services.GetRequiredService <OracleService>(); var hooks = services.GetRequiredService <HookedEvents>(); if (!hooks.PlayerShipReactions) { var reactionService = Services.GetRequiredService <ReactionService>(); ReactionEvent DecreaseIntegrityEvent = new ReactionEventBuilder().WithEmote(DecreaseIntegrityEmoji).WithEvent(DecreaseIntegrity).Build(); ReactionEvent IncreaseIntegrityEvent = new ReactionEventBuilder().WithEmote(IncreaseIntegrityEmoji).WithEvent(IncreaseIntegrity).Build(); ReactionEvent SupplyUpEvent = new ReactionEventBuilder().WithEmote(SupplyUpEmoji).WithEvent(SupplyUp).Build(); ReactionEvent SupplyDownEvent = new ReactionEventBuilder().WithEmote(SupplyDownEmoji).WithEvent(SupplyDown).Build(); ReactionEvent AssetTwoEvent = new ReactionEventBuilder().WithEmote(GenericReactions.twoEmoji).WithEvent(EnableAssetTwo).Build(); ReactionEvent AssetThreeEvent = new ReactionEventBuilder().WithEmote(GenericReactions.threeEmoji).WithEvent(EnableAssetThree).Build(); reactionService.reactionList.Add(DecreaseIntegrityEvent); reactionService.reactionList.Add(IncreaseIntegrityEvent); reactionService.reactionList.Add(SupplyUpEvent); reactionService.reactionList.Add(SupplyDownEvent); reactionService.reactionList.Add(AssetTwoEvent); reactionService.reactionList.Add(AssetThreeEvent); hooks.PlayerShipReactions = true; } }
public DelveCommands(IServiceProvider services) { Services = services; DelveService = Services.GetRequiredService <DelveService>(); OracleService = Services.GetRequiredService <OracleService>(); var hooks = services.GetRequiredService <HookedEvents>(); if (!hooks.DelveReactions) { var reactionService = Services.GetRequiredService <ReactionService>(); ReactionEvent decrease = new ReactionEventBuilder().WithEmote(DecreaseEmoji).WithEvent(ReactionDecreaseEvent).Build(); ReactionEvent increase = new ReactionEventBuilder().WithEmote(IncreaseEmoji).WithEvent(ReactionIncreaseEvent).Build(); ReactionEvent fullMark = new ReactionEventBuilder().WithEmote(FullEmoji).WithEvent(ReactionFullMarkEvent).Build(); ReactionEvent Danger = new ReactionEventBuilder().WithEmote(DangerEmoji).WithEvent(ReactionDangerEvent).Build(); ReactionEvent Feature = new ReactionEventBuilder().WithEmote(FeatureEmoji).WithEvent(ReactionFeatureEvent).Build(); ReactionEvent roll = new ReactionEventBuilder().WithEmote(RollEmoji).WithEvent(ReactionLocateObjectiveEvent).Build(); reactionService.reactionList.Add(decrease); reactionService.reactionList.Add(increase); reactionService.reactionList.Add(fullMark); reactionService.reactionList.Add(roll); reactionService.reactionList.Add(Danger); reactionService.reactionList.Add(Feature); hooks.DelveReactions = true; } }
public StarforgedNPC(IServiceProvider services) { Services = services; ReactionsToAdd = new IEmote[] { aspectEmoji, dispositionEmoji, firstLookEmoji, goalEmoji, roleEmoji }; var hooks = services.GetRequiredService <HookedEvents>(); if (!hooks.StarNPCReactions) { var reactionService = services.GetRequiredService <ReactionService>(); ReactionEvent aspectReaction = new ReactionEventBuilder().WithEmote(aspectEmoji).WithEvent(AspectHandler).Build(); ReactionEvent dispositionReaction = new ReactionEventBuilder().WithEmote(dispositionEmoji).WithEvent(DispositionHandler).Build(); ReactionEvent firstlookReaction = new ReactionEventBuilder().WithEmote(firstLookEmoji).WithEvent(FirstLookHandler).Build(); ReactionEvent goalReaction = new ReactionEventBuilder().WithEmote(goalEmoji).WithEvent(GoalHandler).Build(); ReactionEvent roleReaction = new ReactionEventBuilder().WithEmote(roleEmoji).WithEvent(RoleHandler).Build(); reactionService.reactionList.Add(aspectReaction); reactionService.reactionList.Add(dispositionReaction); reactionService.reactionList.Add(firstlookReaction); reactionService.reactionList.Add(goalReaction); reactionService.reactionList.Add(roleReaction); hooks.StarNPCReactions = true; } }
public ProgressTrackCommands(IServiceProvider service) { Service = service; Client = service.GetRequiredService <DiscordSocketClient>(); var hooks = service.GetRequiredService <HookedEvents>(); if (!hooks.ProgressReactions) { hooks.ProgressReactions = true; var reactionService = Service.GetRequiredService <ReactionService>(); ReactionEvent reaction1 = new ReactionEventBuilder().WithEmoji(oneEmoji).WithEvent(ProgressBuilderReactions).Build(); ReactionEvent reaction2 = new ReactionEventBuilder().WithEmoji(twoEmoji).WithEvent(ProgressBuilderReactions).Build(); ReactionEvent reaction3 = new ReactionEventBuilder().WithEmoji(threeEmoji).WithEvent(ProgressBuilderReactions).Build(); ReactionEvent reaction4 = new ReactionEventBuilder().WithEmoji(fourEmoji).WithEvent(ProgressBuilderReactions).Build(); ReactionEvent reaction5 = new ReactionEventBuilder().WithEmoji(fiveEmoji).WithEvent(ProgressBuilderReactions).Build(); ReactionEvent decrease = new ReactionEventBuilder().WithEmoji(DecreaseEmoji).WithEvent(ProgressInteractiveReactions).Build(); ReactionEvent increase = new ReactionEventBuilder().WithEmoji(IncreaseEmoji).WithEvent(ProgressInteractiveReactions).Build(); ReactionEvent fullMark = new ReactionEventBuilder().WithEmoji(FullEmoji).WithEvent(ProgressInteractiveReactions).Build(); ReactionEvent roll = new ReactionEventBuilder().WithEmoji(RollEmoji).WithEvent(ProgressInteractiveReactions).Build(); reactionService.reactionList.Add(reaction1); reactionService.reactionList.Add(reaction2); reactionService.reactionList.Add(reaction3); reactionService.reactionList.Add(reaction4); reactionService.reactionList.Add(reaction5); reactionService.reactionList.Add(decrease); reactionService.reactionList.Add(increase); reactionService.reactionList.Add(fullMark); reactionService.reactionList.Add(roll); } }
public StarforgedSettlementCommands(ServiceProvider services) { var hooks = services.GetRequiredService <HookedEvents>(); if (!hooks.StarSettlementReactions) { var client = services.GetRequiredService <DiscordSocketClient>(); var reactionService = services.GetRequiredService <ReactionService>(); ReactionEvent reaction1 = new ReactionEventBuilder().WithEmote(oneEmoji).WithEvent(SettlementReactionHandler).Build(); ReactionEvent reaction2 = new ReactionEventBuilder().WithEmote(twoEmoji).WithEvent(SettlementReactionHandler).Build(); ReactionEvent reaction3 = new ReactionEventBuilder().WithEmote(threeEmoji).WithEvent(SettlementReactionHandler).Build(); ReactionEvent project = new ReactionEventBuilder().WithEmote(projectEmoji).WithEvent(SettlementReactionHandler).Build(); reactionService.reactionList.Add(reaction1); reactionService.reactionList.Add(reaction2); reactionService.reactionList.Add(reaction3); reactionService.reactionList.Add(project); hooks.StarSettlementReactions = true; } Services = services; }
public PlayerCardCommands(IServiceProvider services) { Services = services; var hooks = services.GetRequiredService <HookedEvents>(); if (!hooks.PlayerCardReactions) { var reactionService = services.GetRequiredService <ReactionService>(); ReactionEvent reaction1 = new ReactionEventBuilder().WithEmote(GenericReactions.oneEmoji).WithEvent(HelperReactionHandler).Build(); ReactionEvent reaction2 = new ReactionEventBuilder().WithEmote(GenericReactions.twoEmoji).WithEvent(HelperReactionHandler).Build(); ReactionEvent reaction3 = new ReactionEventBuilder().WithEmote(GenericReactions.threeEmoji).WithEvent(HelperReactionHandler).Build(); ReactionEvent reaction4 = new ReactionEventBuilder().WithEmote(GenericReactions.fourEmoji).WithEvent(HelperReactionHandler).Build(); ReactionEvent upReaction = new ReactionEventBuilder().WithEmote(upEmoji).WithEvent(ResourceChangeHandler).Build(); ReactionEvent downReaction = new ReactionEventBuilder().WithEmote(downEmoji).WithEvent(ResourceChangeHandler).Build(); ReactionEvent burnReaction = new ReactionEventBuilder().WithEmote(burnEmoji).WithEvent(BurnMomentumReactionHandler).Build(); reactionService.reactionList.Add(reaction1); reactionService.reactionList.Add(reaction2); reactionService.reactionList.Add(reaction3); reactionService.reactionList.Add(reaction4); reactionService.reactionList.Add(upReaction); reactionService.reactionList.Add(downReaction); reactionService.reactionList.Add(burnReaction); hooks.PlayerCardReactions = true; } }
public StarforgedShipCommands(ServiceProvider services) { var hooks = services.GetRequiredService <HookedEvents>(); if (!hooks.StarShipReactions) { var client = services.GetRequiredService <DiscordSocketClient>(); var reactionService = services.GetRequiredService <ReactionService>(); ReactionEvent reaction1 = new ReactionEventBuilder().WithEmote(GenericReactions.oneEmoji).WithEvent(ShipReactionHandler).Build(); ReactionEvent reaction2 = new ReactionEventBuilder().WithEmote(GenericReactions.twoEmoji).WithEvent(ShipReactionHandler).Build(); ReactionEvent reaction3 = new ReactionEventBuilder().WithEmote(GenericReactions.threeEmoji).WithEvent(ShipReactionHandler).Build(); ReactionEvent misison = new ReactionEventBuilder().WithEmote(missionEmoji).WithEvent(ShipReactionHandler).Build(); reactionService.reactionList.Add(reaction1); reactionService.reactionList.Add(reaction2); reactionService.reactionList.Add(reaction3); reactionService.reactionList.Add(misison); hooks.StarShipReactions = true; } Services = services; }
public InitiativeTrackerCommands(ServiceProvider services) { Services = services; var hooks = Services.GetRequiredService <HookedEvents>(); if (!hooks.InitiativeReactions) { ReactionEvent reaction1 = new ReactionEventBuilder().WithEmoji(AdvantageEmoji).WithEvent(InitiativeReactionsHandler).Build(); ReactionEvent reaction2 = new ReactionEventBuilder().WithEmoji(DisadvantageEmoji).WithEvent(InitiativeReactionsHandler).Build(); services.GetRequiredService <ReactionService>().reactionList.Add(reaction1); services.GetRequiredService <ReactionService>().reactionList.Add(reaction2); hooks.InitiativeReactions = true; } }
//OracleService is loaded from DI public OracleCommands(IServiceProvider services) { _oracleService = services.GetRequiredService <OracleService>(); _client = services.GetRequiredService <DiscordSocketClient>(); if (!services.GetRequiredService <HookedEvents>().OracleTableReactions) { var reactionService = services.GetRequiredService <ReactionService>(); ReactionEvent reaction1 = new ReactionEventBuilder().WithEmoji("\uD83E\uDDE6").WithEvent(PairedTableReactionHandler).Build(); reactionService.reactionList.Add(reaction1); services.GetRequiredService <HookedEvents>().OracleTableReactions = true; } Services = services; }
public AssetCommands(IServiceProvider services) { Services = services; var hooks = Services.GetRequiredService <HookedEvents>(); if (!hooks.AssetReactions) { ReactionEvent reaction1 = new ReactionEventBuilder().WithEmoji("⬆️").WithEvent(NumericTrackIncrease).Build(); ReactionEvent reaction2 = new ReactionEventBuilder().WithEmoji("⬇️").WithEvent(NumericTrackDecrease).Build(); ReactionEvent reaction3 = new ReactionEventBuilder().WithEmoji("⬅️").WithEvent(MultiTrackLeft).Build(); ReactionEvent reaction4 = new ReactionEventBuilder().WithEmoji("➡️").WithEvent(MultiTrackRight).Build(); ReactionEvent reaction5 = new ReactionEventBuilder().WithEmoji("➕").WithEvent(CountingTrackUp).Build(); ReactionEvent reaction6 = new ReactionEventBuilder().WithEmoji("➖").WithEvent(CountingTrackDown).Build(); ReactionEvent reaction7 = new ReactionEventBuilder().WithEmote(GenericReactions.oneEmoji).WithEvent(AssetFieldEventAdd).Build(); ReactionEvent reaction8 = new ReactionEventBuilder().WithEmote(GenericReactions.twoEmoji).WithEvent(AssetFieldEventAdd).Build(); ReactionEvent reaction9 = new ReactionEventBuilder().WithEmote(GenericReactions.threeEmoji).WithEvent(AssetFieldEventAdd).Build(); ReactionEvent reaction10 = new ReactionEventBuilder().WithEmote(GenericReactions.fourEmoji).WithEvent(AssetFieldEventAdd).Build(); ReactionEvent reaction7rem = new ReactionEventBuilder().WithEmote(GenericReactions.oneEmoji).WithRemoveEvent(AssetFieldEventRem).Build(); ReactionEvent reaction8rem = new ReactionEventBuilder().WithEmote(GenericReactions.twoEmoji).WithRemoveEvent(AssetFieldEventRem).Build(); ReactionEvent reaction9rem = new ReactionEventBuilder().WithEmote(GenericReactions.threeEmoji).WithRemoveEvent(AssetFieldEventRem).Build(); ReactionEvent reaction10rem = new ReactionEventBuilder().WithEmote(GenericReactions.fourEmoji).WithRemoveEvent(AssetFieldEventRem).Build(); services.GetRequiredService <ReactionService>().reactionList.Add(reaction1); services.GetRequiredService <ReactionService>().reactionList.Add(reaction2); services.GetRequiredService <ReactionService>().reactionList.Add(reaction3); services.GetRequiredService <ReactionService>().reactionList.Add(reaction4); services.GetRequiredService <ReactionService>().reactionList.Add(reaction5); services.GetRequiredService <ReactionService>().reactionList.Add(reaction6); services.GetRequiredService <ReactionService>().reactionList.Add(reaction7); services.GetRequiredService <ReactionService>().reactionList.Add(reaction8); services.GetRequiredService <ReactionService>().reactionList.Add(reaction9); services.GetRequiredService <ReactionService>().reactionList.Add(reaction10); services.GetRequiredService <ReactionService>().reactionRemovedList.Add(reaction7rem); services.GetRequiredService <ReactionService>().reactionRemovedList.Add(reaction8rem); services.GetRequiredService <ReactionService>().reactionRemovedList.Add(reaction9rem); services.GetRequiredService <ReactionService>().reactionRemovedList.Add(reaction10rem); hooks.AssetReactions = true; } }
public SceneChallengeCommands(IServiceProvider services) { Services = services; var hooks = Services.GetRequiredService <HookedEvents>(); if (!hooks.SceneChallengeReactions) { hooks.SceneChallengeReactions = true; var reactionService = Services.GetRequiredService <ReactionService>(); ReactionEvent reaction1 = new ReactionEventBuilder().WithEmote(GenericReactions.oneEmoji).WithEvent(ProgressBuilderReactions).Build(); ReactionEvent reaction2 = new ReactionEventBuilder().WithEmote(GenericReactions.twoEmoji).WithEvent(ProgressBuilderReactions).Build(); ReactionEvent reaction3 = new ReactionEventBuilder().WithEmote(GenericReactions.threeEmoji).WithEvent(ProgressBuilderReactions).Build(); ReactionEvent reaction4 = new ReactionEventBuilder().WithEmote(GenericReactions.fourEmoji).WithEvent(ProgressBuilderReactions).Build(); ReactionEvent reaction5 = new ReactionEventBuilder().WithEmote(GenericReactions.fiveEmoji).WithEvent(ProgressBuilderReactions).Build(); ReactionEvent decrease = new ReactionEventBuilder().WithEmote(DecreaseEmoji).WithEvent(ReactionDecreaseProgressEvent).Build(); ReactionEvent increase = new ReactionEventBuilder().WithEmote(IncreaseEmoji).WithEvent(ReactionIncreaseProgressEvent).Build(); ReactionEvent fullMark = new ReactionEventBuilder().WithEmote(FullEmoji).WithEvent(ReactionFullMarkEvent).Build(); ReactionEvent challengeDecrease = new ReactionEventBuilder().WithEmote(emptyChallengeEmoji).WithEvent(ReactionDecreaseChallengeEvent).Build(); ReactionEvent challengeIncrease = new ReactionEventBuilder().WithEmote(fullChallengeEmoji).WithEvent(ReactionIncreaseChallengeEvent).Build(); ReactionEvent roll = new ReactionEventBuilder().WithEmote(RollEmoji).WithEvent(ReactionResolveScene).Build(); reactionService.reactionList.Add(decrease); reactionService.reactionList.Add(increase); reactionService.reactionList.Add(fullMark); reactionService.reactionList.Add(challengeDecrease); reactionService.reactionList.Add(challengeIncrease); reactionService.reactionList.Add(roll); reactionService.reactionList.Add(reaction1); reactionService.reactionList.Add(reaction2); reactionService.reactionList.Add(reaction3); reactionService.reactionList.Add(reaction4); reactionService.reactionList.Add(reaction5); } }
public AskCommand(ServiceProvider service) { Service = service; var hooks = service.GetRequiredService <HookedEvents>(); if (!hooks.AskTheOracleReactions) { var reactionService = Service.GetRequiredService <ReactionService>(); ReactionEvent reaction1 = new ReactionEventBuilder().WithEmoji(oneEmoji).WithEvent(HelperHandler).Build(); ReactionEvent reaction2 = new ReactionEventBuilder().WithEmoji(twoEmoji).WithEvent(HelperHandler).Build(); ReactionEvent reaction3 = new ReactionEventBuilder().WithEmoji(threeEmoji).WithEvent(HelperHandler).Build(); ReactionEvent reaction4 = new ReactionEventBuilder().WithEmoji(fourEmoji).WithEvent(HelperHandler).Build(); ReactionEvent reaction5 = new ReactionEventBuilder().WithEmoji(fiveEmoji).WithEvent(HelperHandler).Build(); reactionService.reactionList.Add(reaction1); reactionService.reactionList.Add(reaction2); reactionService.reactionList.Add(reaction3); reactionService.reactionList.Add(reaction4); reactionService.reactionList.Add(reaction5); hooks.AskTheOracleReactions = true; } //Todo turn this into a localization friendly data structure ChanceLookUp = new List <Tuple <string, int> > { new Tuple <string, int>(OracleResources.AlmostCertain, 90), new Tuple <string, int>("Certain", 90), new Tuple <string, int>(OracleResources.Likely, 75), new Tuple <string, int>(OracleResources.FiftyFifty, 50), new Tuple <string, int>("5050", 50), new Tuple <string, int>(OracleResources.Unlikely, 25), new Tuple <string, int>(OracleResources.SmallChance, 10), new Tuple <string, int>("Small", 10), }; }