mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-05 08:17:03 +00:00
Show player relations in player info overlay
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { consolex } from "../Consolex";
|
||||
import {AllPlayers, Execution, MutableGame, MutablePlayer, PlayerID} from "../game/Game";
|
||||
import { Execution, MutableGame, MutablePlayer, PlayerID } from "../game/Game";
|
||||
|
||||
export class DonateExecution implements Execution {
|
||||
|
||||
@@ -26,6 +26,7 @@ export class DonateExecution implements Execution {
|
||||
tick(ticks: number): void {
|
||||
if (this.sender.canDonate(this.recipient)) {
|
||||
this.sender.donate(this.recipient, this.troops)
|
||||
this.recipient.updateRelation(this.sender, 50)
|
||||
} else {
|
||||
consolex.warn(`cannot send tropps from ${this.sender} to ${this.recipient}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user