|
|
|
@@ -182,6 +182,16 @@ export default class Combat extends Vue { |
|
|
|
), |
|
|
|
"center" |
|
|
|
) |
|
|
|
if (this.encounter.winner === this.world.player.side && this.encounter.rewardGifted === false) { |
|
|
|
this.world.player.wallet.Gold += this.encounter.reward |
|
|
|
this.writeLog( |
|
|
|
new LogLine( |
|
|
|
`You found ` + this.encounter.reward + ` gold.` |
|
|
|
), |
|
|
|
"center" |
|
|
|
) |
|
|
|
this.encounter.rewardGifted = true |
|
|
|
} |
|
|
|
} else if (this.encounter.winner !== null && !this.$data.won && !this.$data.continuing) { |
|
|
|
this.$data.won = true |
|
|
|
this.writeLog( |
|
|
|
@@ -190,6 +200,16 @@ export default class Combat extends Vue { |
|
|
|
), |
|
|
|
"center" |
|
|
|
) |
|
|
|
if (this.encounter.winner === this.world.player.side && this.encounter.rewardGifted === false) { |
|
|
|
this.world.player.wallet.Gold += this.encounter.reward |
|
|
|
this.writeLog( |
|
|
|
new LogLine( |
|
|
|
`You found ` + this.encounter.reward + ` gold.` |
|
|
|
), |
|
|
|
"center" |
|
|
|
) |
|
|
|
this.encounter.rewardGifted = true |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (this.encounter.currentMove.side === Side.Heroes) { |
|
|
|
this.$data.left = this.encounter.currentMove |
|
|
|
|