chore: tidy

This commit is contained in:
cha0s 2023-12-02 06:02:47 -06:00
parent 05ec420e5e
commit 7691ff0f19
8 changed files with 0 additions and 11 deletions

View File

@ -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;

View File

@ -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 {

View File

@ -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),

View File

@ -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;

View File

@ -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;

View File

@ -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();

View File

@ -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;

View File

@ -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;