Don't shield up if it exists, fix messaging
This commit is contained in:
parent
785660558d
commit
a0fbe76422
@ -257,7 +257,7 @@ type HackerGame() =
|
||||
battleFn ctx
|
||||
| _ ->
|
||||
task {
|
||||
let msg = $"You must go to <#{GuildEnvironment.channelBattle}> channel to hack or shield up for real"
|
||||
let msg = $"You must go to <#{GuildEnvironment.channelBattle}> channel to hack, shield, or check your arsenal"
|
||||
do! Messaging.sendSimpleResponse ctx msg
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,7 @@ type Store() =
|
||||
| id when id = GuildEnvironment.channelArmory -> storeFn ctx
|
||||
| _ ->
|
||||
task {
|
||||
let msg = $"You must go to <#{GuildEnvironment.channelArmory}> channel to buy/sell or check your arsenal"
|
||||
let msg = $"You must go to <#{GuildEnvironment.channelArmory}> channel to buy or sell weapons"
|
||||
do! Messaging.sendSimpleResponse ctx msg
|
||||
}
|
||||
|
||||
|
@ -190,7 +190,7 @@ let handleAttack (event : ComponentInteractionCreateEventArgs) =
|
||||
}
|
||||
ActionId = defaultHack.Id
|
||||
}
|
||||
if not hasShields then {
|
||||
if not hasShields && Array.exists (fun act -> act.ActionId = freeShield.Id) player.Actions |> not then {
|
||||
Action.Timestamp = System.DateTime.UtcNow
|
||||
Action.Type = Defense
|
||||
Action.ActionId = freeShield.Id
|
||||
|
Loading…
x
Reference in New Issue
Block a user