2020-07-27 18:14:05 +00:00
|
|
|
<ShipItem {cost} {mass}>
|
|
|
|
<Field label="ADFC">
|
2020-07-28 18:55:08 +00:00
|
|
|
<input type="number" class="short" bind:value={rating} />
|
2020-07-27 18:14:05 +00:00
|
|
|
</Field>
|
|
|
|
</ShipItem>
|
|
|
|
|
|
|
|
|
2020-07-28 18:55:08 +00:00
|
|
|
<script>
|
2021-05-17 13:48:31 +00:00
|
|
|
import ShipItem from "../../ShipItem/index.svelte";
|
|
|
|
import Field from "../../Field/index.svelte";
|
2020-07-28 18:55:08 +00:00
|
|
|
|
|
|
|
import { getContext } from "svelte";
|
2020-07-27 18:14:05 +00:00
|
|
|
|
|
|
|
export let rating = 0;
|
|
|
|
export let cost = 0;
|
|
|
|
export let mass = 0;
|
2021-06-13 15:36:59 +00:00
|
|
|
export let ship = getContext("ship");
|
2020-07-27 18:14:05 +00:00
|
|
|
|
2021-06-13 15:36:59 +00:00
|
|
|
$: ship?.dispatch_action('set_adfc',rating);
|
2020-07-28 18:55:08 +00:00
|
|
|
</script>
|