Restore gifs
This commit is contained in:
parent
8632031ef3
commit
b12dfe6788
@ -8,18 +8,30 @@ open DSharpPlus.Entities
|
|||||||
let hackGif = "https://s10.gifyu.com/images/Hacker-Degenz-V20ce8eb832734aa62-min.gif"
|
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 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.Virus -> "https://s10.gifyu.com/images/Virus-icon.jpg"
|
||||||
| HackId.RemoteAccess -> "https://s10.gifyu.com/images/Mind-Control-Degenz-V2-min.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"
|
| HackId.Worm -> "https://s10.gifyu.com/images/WormBugAttack_Degenz-min.jpg"
|
||||||
| _ -> hackGif
|
| _ -> hackGif
|
||||||
|
|
||||||
let getShieldGif = function
|
let getShieldIcon = function
|
||||||
| ShieldId.Firewall -> "https://s10.gifyu.com/images/Defense-GIF-1-Degenz-1.jpg"
|
| 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.Encryption -> "https://s10.gifyu.com/images/Encryption-Degenz-V2-1-min.jpg"
|
||||||
| ShieldId.Cypher -> "https://s10.gifyu.com/images/Cypher-Smaller.jpg"
|
| ShieldId.Cypher -> "https://s10.gifyu.com/images/Cypher-Smaller.jpg"
|
||||||
| _ -> shieldGif
|
| _ -> 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) =
|
let constructButtons (actionType: string) (playerInfo: string) (items: BattleItem array) =
|
||||||
items
|
items
|
||||||
|> Array.map (fun item -> DiscordButtonComponent(Game.getClassButtonColor item.Class, $"{actionType}-{item.Id}-{playerInfo}", $"{item.Name}"))
|
|> 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
|
embed
|
||||||
.AddField($"Weak Against |", getGoodAgainst item.Class |> fst |> string , true)
|
.AddField($"Weak Against |", getGoodAgainst item.Class |> fst |> string , true)
|
||||||
.AddField("Cooldown |", $"{TimeSpan.FromMinutes(int item.Cooldown).Minutes} minutes", true)
|
.AddField("Cooldown |", $"{TimeSpan.FromMinutes(int item.Cooldown).Minutes} minutes", true)
|
||||||
.WithThumbnail(getHackGif (enum<HackId>(item.Id)))
|
.WithThumbnail(getHackIcon (enum<HackId>(item.Id)))
|
||||||
|> ignore
|
|> ignore
|
||||||
| Shield ->
|
| Shield ->
|
||||||
embed
|
embed
|
||||||
.AddField($"Strong Against |", getGoodAgainst item.Class |> snd |> string , true)
|
.AddField($"Strong Against |", getGoodAgainst item.Class |> snd |> string , true)
|
||||||
.AddField("Active For |", $"{TimeSpan.FromMinutes(int item.Cooldown).Hours} hours", true)
|
.AddField("Active For |", $"{TimeSpan.FromMinutes(int item.Cooldown).Hours} hours", true)
|
||||||
.WithThumbnail(getShieldGif (enum<ShieldId>(item.Id)))
|
.WithThumbnail(getShieldIcon (enum<ShieldId>(item.Id)))
|
||||||
|> ignore
|
|> ignore
|
||||||
embed
|
embed
|
||||||
.AddField("Cost 💰", $"{item.Cost} $GBT", true)
|
.AddField("Cost 💰", $"{item.Cost} $GBT", true)
|
||||||
@ -131,8 +143,8 @@ let getSellItemsEmbed (itemType : ItemType) (player : PlayerData) =
|
|||||||
|> Array.map (fun item ->
|
|> Array.map (fun item ->
|
||||||
let embed = DiscordEmbedBuilder()
|
let embed = DiscordEmbedBuilder()
|
||||||
match item.Type with
|
match item.Type with
|
||||||
| Hack -> embed.WithThumbnail(getHackGif (enum<HackId>(item.Id))) |> ignore
|
| Hack -> embed.WithThumbnail(getHackIcon (enum<HackId>(item.Id))) |> ignore
|
||||||
| Shield -> embed.WithThumbnail(getShieldGif (enum<ShieldId>(item.Id))) |> ignore
|
| Shield -> embed.WithThumbnail(getShieldIcon (enum<ShieldId>(item.Id))) |> ignore
|
||||||
embed
|
embed
|
||||||
.AddField("Sell For 💰", $"{item.Cost} $GBT", true)
|
.AddField("Sell For 💰", $"{item.Cost} $GBT", true)
|
||||||
.WithColor(Game.getClassEmbedColor item.Class)
|
.WithColor(Game.getClassEmbedColor item.Class)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user