Skip to content

Commit

Permalink
comment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Promises committed Oct 12, 2020
1 parent 4c40e97 commit 5479f68
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/world/actor/player/action/equip-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export type EquipType = 'EQUIP' | 'UNEQUIP';
export interface EquipDetails {
// The player performing the action.
player: Player;
// The ID of the item being interacted with.
// The ID of the item being equipped/unequipped.
itemId: number;
// Additional details about the item.
itemDetails: ItemDetails;
// The option that the player used (ie "equip" or "drop").
// If the item was equipped or unequiped.
equipType: EquipType;
}

Expand All @@ -38,12 +38,12 @@ export interface EquipActionPlugin extends ActionPlugin {
}

/**
* A directory of all object interaction plugins.
* A directory of all equipment plugins.
*/
let equipInteractions: EquipActionPlugin[] = [];

/**
* Sets the list of object interaction plugins.
* Sets the list of equipment plugins.
* @param plugins The plugin list.
*/
export const setEquipPlugins = (plugins: ActionPlugin[]): void => {
Expand All @@ -52,7 +52,6 @@ export const setEquipPlugins = (plugins: ActionPlugin[]): void => {

export const equipAction = (player: Player, itemId: number, equipType: EquipType): void => {

// Find all object action plugins that reference this location object
let equipActions = equipInteractions.filter(plugin => {
if(!questFilter(player, plugin)) {
return false;
Expand Down

0 comments on commit 5479f68

Please sign in to comment.