chore: tidy
This commit is contained in:
parent
05ec420e5e
commit
7691ff0f19
|
@ -34,7 +34,6 @@ export default () => {
|
|||
// Track room.
|
||||
case Room.resourceId: {
|
||||
flecks.set('$humus/app.room', created);
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
created.universe = synchronizer.synchronized(7, 0);
|
||||
setRoom(created);
|
||||
break;
|
||||
|
|
|
@ -5,13 +5,11 @@ export const selfEntitySelector = ({selfEntity}) => selfEntity;
|
|||
const slice = createSlice({
|
||||
name: 'humus/self-entity',
|
||||
initialState: null,
|
||||
/* eslint-disable no-param-reassign */
|
||||
reducers: {
|
||||
setSelfEntity: (state, {payload}) => payload,
|
||||
},
|
||||
extraReducers: {
|
||||
},
|
||||
/* eslint-enable no-param-reassign */
|
||||
});
|
||||
|
||||
export const {
|
||||
|
|
|
@ -14,7 +14,6 @@ export default (flecks) => class Vulnerable extends Trait {
|
|||
$$isNotHarmedBy = [];
|
||||
|
||||
async acceptHarm(harm) {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
harm.from = this.entity.list
|
||||
? await Promise.race([
|
||||
this.entity.list.waitForEntity(harm.from),
|
||||
|
|
|
@ -13,7 +13,6 @@ export default () => class RoomWaterPacket extends Packet {
|
|||
|
||||
static pack(data) {
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
data[i].amount = Math.floor(data[i].amount);
|
||||
}
|
||||
return data;
|
||||
|
|
|
@ -79,7 +79,6 @@ export default (flecks) => class Receptacle extends decorate(Trait) {
|
|||
return;
|
||||
}
|
||||
// Set wielder.
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
item.wielder = this.entity;
|
||||
this.addListenersForItem(item);
|
||||
this.slotItems[slotNumber] = item;
|
||||
|
|
|
@ -51,7 +51,6 @@ export const hooks = {
|
|||
const {universe} = flecks.get('$humus/universe');
|
||||
const {user} = handshake;
|
||||
if (0 !== user.id) {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
handshake.entity = await universe.loadOrCreateEntity(user);
|
||||
}
|
||||
next();
|
||||
|
|
|
@ -28,12 +28,10 @@ const slice = createSlice({
|
|||
room: null,
|
||||
selfEntityUuid: -1,
|
||||
},
|
||||
/* eslint-disable no-param-reassign */
|
||||
extraReducers: {
|
||||
},
|
||||
reducers: {
|
||||
},
|
||||
/* eslint-enable no-param-reassign */
|
||||
});
|
||||
|
||||
slice.reducer.subscription = slice.reducer;
|
||||
|
|
|
@ -30,12 +30,10 @@ const slice = createSlice({
|
|||
title: 'random universe',
|
||||
},
|
||||
},
|
||||
/* eslint-disable no-param-reassign */
|
||||
extraReducers: {
|
||||
},
|
||||
reducers: {
|
||||
},
|
||||
/* eslint-enable no-param-reassign */
|
||||
});
|
||||
|
||||
slice.reducer.subscription = slice.reducer;
|
||||
|
|
Loading…
Reference in New Issue
Block a user