Skip to content

Commit

Permalink
fix(lint): remove unnecessary cast, some obsolete todos
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed May 18, 2021
1 parent 306a791 commit e141fd7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/service/script/common/ActorStep.ts
Expand Up @@ -96,11 +96,11 @@ export async function ActorStepHit(this: Actor, scope: ScriptScope): Promise<voi
return;
}

await scope.script.invoke(target as WorldEntity, SLOT_HIT, {
await scope.script.invoke(target, SLOT_HIT, {
...scope,
actor: this,
item: this.items[0],
}); // TODO: fix entity cast
});
}

export async function ActorStepLook(this: Actor, scope: ScriptScope): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion src/service/script/common/RoomStep.ts
Expand Up @@ -14,7 +14,7 @@ export async function RoomStep(this: ScriptTarget, scope: ScriptScope): Promise<
throw new InvalidArgumentError('script target must be a room');
}

// TODO: remove
// TODO: remove, testing broadcast system
await scope.script.broadcast({
meta: {
id: 'actor-goblin',
Expand Down
1 change: 0 additions & 1 deletion src/service/state/LocalStateService.ts
Expand Up @@ -432,7 +432,6 @@ export class LocalStateService implements StateService {

for (const actor of room.actors) {
if (seen.has(actor.meta.id) === false) {
// TODO: make this better, somehow
const input = await this.getActorInput(actor);
const command = await input.last();

Expand Down
2 changes: 1 addition & 1 deletion src/service/template/ChainTemplateService.ts
Expand Up @@ -75,7 +75,7 @@ export class ChainTemplateService implements TemplateService {
for (const [key, value] of input) {
const verb: VerbSlot = {
slot: this.renderString(value.slot),
data: {}, // TODO
data: {}, // TODO: render this stuff
};

result.set(key, verb);
Expand Down

0 comments on commit e141fd7

Please sign in to comment.