1
0
Fork 0
spacetac/src/scripts/game/equipments/ConventionalEngine.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

23 lines
650 B
TypeScript

/// <reference path="../LootTemplate.ts"/>
module SpaceTac.Game.Equipments {
"use strict";
// Equipment: Conventional Engine
export class ConventionalEngine extends LootTemplate {
constructor() {
super(SlotType.Engine, "Conventional Engine");
this.min_level = new IntegerRange(1, 1);
this.distance = new Range(50, 50);
this.ap_usage = new Range(3);
this.addPermanentAttributeMaxEffect(AttributeCode.Initiative, 1);
}
protected getActionForEquipment(equipment: Equipment): BaseAction {
return new MoveAction(equipment);
}
}
}