mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-13 19:07:09 +00:00
bugfix: emoji button to send to all players always active, shorten emoji cooldown
This commit is contained in:
@@ -125,7 +125,10 @@ export class PlayerPanel extends LitElement implements Layer {
|
||||
const canDonate = this.actions.interaction?.canDonate;
|
||||
const canSendAllianceRequest =
|
||||
this.actions.interaction?.canSendAllianceRequest;
|
||||
const canSendEmoji = this.actions.interaction?.canSendEmoji;
|
||||
const canSendEmoji =
|
||||
other == myPlayer
|
||||
? this.actions.canSendEmojiAllPlayers
|
||||
: this.actions.interaction?.canSendEmoji;
|
||||
const canBreakAlliance = this.actions.interaction?.canBreakAlliance;
|
||||
const canTarget = this.actions.interaction?.canTarget;
|
||||
|
||||
|
||||
@@ -205,7 +205,7 @@ export class DefaultConfig implements Config {
|
||||
return 5 * 10;
|
||||
}
|
||||
emojiMessageCooldown(): Tick {
|
||||
return 15 * 10;
|
||||
return 5 * 10;
|
||||
}
|
||||
targetDuration(): Tick {
|
||||
return 10 * 10;
|
||||
|
||||
Reference in New Issue
Block a user