1
0
Fork 0
spacetac/src/scripts/game/Equipment.ts
Michaël Lemaire 66f86b4ddb Removed Ship.movement_cost, in favor of engine-defined AP cost
Ship movement and AP consumption is now handled by MoveAction
2015-01-29 01:00:00 +01:00

43 lines
899 B
TypeScript

module SpaceTac.Game {
"use strict";
// Piece of equipment to attach in slots
export class Equipment {
// Type of slot this equipment will fit in
slot: SlotType;
// Equipment name
name: string;
// Maximal distance allowed to target
distance: number;
// Effect area's radius
blast: number;
// Duration
duration: number;
// Action Points usage
ap_usage: number;
// Level requirement
min_level: number;
// Action associated with this equipment
action: BaseAction;
// Permanent effects
permanent_effects: BaseEffect[];
// Effects on target
target_effects: BaseEffect[];
// Basic constructor
constructor() {
this.permanent_effects = [];
this.target_effects = [];
}
}
}