Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
if (game.user.targets.size !== 1)
|
||||
return ui.notifications.warn("You must target exactly one Boat.");
|
||||
return ui.notifications.warn("Vous devez cibler exactement un seul Bateau.");
|
||||
|
||||
const target = game.user.targets.first();
|
||||
const vehicle = target.actor;
|
||||
|
||||
if (!(vehicle.system instanceof VehicleModel))
|
||||
return ui.notifications.warn("You can only Constrict a Boat");
|
||||
if (!(vehicle.system instanceof VehicleModel))
|
||||
return ui.notifications.warn("Vous ne pouvez Constrict qu'un Bateau");
|
||||
|
||||
if (vehicle.size > 3)
|
||||
return ui.notifications.warn("You can only Constrict vessels of Size Large or smaller");
|
||||
return ui.notifications.warn("Vous ne pouvez Constrict que des navires de Taille Large ou plus petits");
|
||||
|
||||
const turns = Math.ceil(vehicle.system.details.length.value / 10);
|
||||
|
||||
@@ -24,4 +24,4 @@ await this.actor.applyEffect({effectData: [effectData]});
|
||||
|
||||
const speaker = ChatMessage.getSpeaker({actor: this.actor});
|
||||
|
||||
this.script.scriptMessage(`<b>${speaker.alias}</b> started wrapping itself around the <b>${target.name}</b> and will be able to start crushing it after ${turns} turns.`);
|
||||
this.script.message(`<b>${speaker.alias}</b> a commencé à s'enrouler autour du <b>${target.name}</b> et pourra commencer à l'écraser après ${turns} tours.`);
|
||||
Reference in New Issue
Block a user