diff --git a/Bot/Embeds.fs b/Bot/Embeds.fs index d328512..5363e62 100644 --- a/Bot/Embeds.fs +++ b/Bot/Embeds.fs @@ -8,18 +8,30 @@ open DSharpPlus.Entities let hackGif = "https://s10.gifyu.com/images/Hacker-Degenz-V20ce8eb832734aa62-min.gif" let shieldGif = "https://s10.gifyu.com/images/Defense-Degenz-V2-min.gif" -let getHackGif = function +let getHackIcon = function | HackId.Virus -> "https://s10.gifyu.com/images/Virus-icon.jpg" | HackId.RemoteAccess -> "https://s10.gifyu.com/images/Mind-Control-Degenz-V2-min.jpg" | HackId.Worm -> "https://s10.gifyu.com/images/WormBugAttack_Degenz-min.jpg" | _ -> hackGif -let getShieldGif = function +let getShieldIcon = function | ShieldId.Firewall -> "https://s10.gifyu.com/images/Defense-GIF-1-Degenz-1.jpg" | ShieldId.Encryption -> "https://s10.gifyu.com/images/Encryption-Degenz-V2-1-min.jpg" | ShieldId.Cypher -> "https://s10.gifyu.com/images/Cypher-Smaller.jpg" | _ -> shieldGif +let getHackGif = function + | HackId.Virus -> "https://s10.gifyu.com/images/Attack-DegenZ-1.gif" + | HackId.RemoteAccess -> "https://s10.gifyu.com/images/Mind-Control-Degenz-V2-min.gif" + | HackId.Worm -> "https://s10.gifyu.com/images/WormBugAttack_Degenz-min.gif" + | _ -> hackGif + +let getShieldGif = function + | ShieldId.Firewall -> "https://s10.gifyu.com/images/Defense-GIF-1-Degenz-min.gif" + | ShieldId.Encryption -> "https://s10.gifyu.com/images/Encryption-Degenz-V2-1-min.gif" + | ShieldId.Cypher -> "https://s10.gifyu.com/images/Cypher-Smaller.gif" + | _ -> shieldGif + let constructButtons (actionType: string) (playerInfo: string) (items: BattleItem array) = items |> Array.map (fun item -> DiscordButtonComponent(Game.getClassButtonColor item.Class, $"{actionType}-{item.Id}-{playerInfo}", $"{item.Name}")) @@ -102,13 +114,13 @@ let getBuyItemsEmbed (itemType : ItemType) (store : BattleItem array) = embed .AddField($"Weak Against |", getGoodAgainst item.Class |> fst |> string , true) .AddField("Cooldown |", $"{TimeSpan.FromMinutes(int item.Cooldown).Minutes} minutes", true) - .WithThumbnail(getHackGif (enum(item.Id))) + .WithThumbnail(getHackIcon (enum(item.Id))) |> ignore | Shield -> embed .AddField($"Strong Against |", getGoodAgainst item.Class |> snd |> string , true) .AddField("Active For |", $"{TimeSpan.FromMinutes(int item.Cooldown).Hours} hours", true) - .WithThumbnail(getShieldGif (enum(item.Id))) + .WithThumbnail(getShieldIcon (enum(item.Id))) |> ignore embed .AddField("Cost 💰", $"{item.Cost} $GBT", true) @@ -131,8 +143,8 @@ let getSellItemsEmbed (itemType : ItemType) (player : PlayerData) = |> Array.map (fun item -> let embed = DiscordEmbedBuilder() match item.Type with - | Hack -> embed.WithThumbnail(getHackGif (enum(item.Id))) |> ignore - | Shield -> embed.WithThumbnail(getShieldGif (enum(item.Id))) |> ignore + | Hack -> embed.WithThumbnail(getHackIcon (enum(item.Id))) |> ignore + | Shield -> embed.WithThumbnail(getShieldIcon (enum(item.Id))) |> ignore embed .AddField("Sell For 💰", $"{item.Cost} $GBT", true) .WithColor(Game.getClassEmbedColor item.Class)