improves progressive rendering, work in progress...
This commit is contained in:
@@ -40,12 +40,12 @@
|
||||
computed: {
|
||||
// Check if item is requested by active player
|
||||
isRequested () {
|
||||
const reqs = this.state.requests[this.state.player_id];
|
||||
const reqs = this.state.player_claims[this.state.player_id];
|
||||
return reqs.includes(this.item);
|
||||
},
|
||||
// Check if item is requested by multiple players including active one
|
||||
isInConflict () {
|
||||
const reqs = this.state.requests;
|
||||
const reqs = this.state.player_claims;
|
||||
const playerId = this.state.player_id;
|
||||
var reqByPlayer = false;
|
||||
var reqByOther = false;
|
||||
|
||||
Reference in New Issue
Block a user