+
+ {
+ if (!e.target.value || Number.isNaN(Number(e.target.value)))
+ return;
+ try {
+ await q.plugin.systems.phasers.update.netSend({
+ pluginId,
+ systemId: systemId,
+ shipId,
+ shipPluginId,
+ maxRange: Number(e.target.value),
+ });
+ } catch (err) {
+ if (err instanceof Error) {
+ toast({
+ title: "Error changing max range",
+ body: err.message,
+ color: "error",
+ });
+ }
+ }
+ }}
+ />
+
+
+
+
+ {
+ if (!e.target.value || Number.isNaN(Number(e.target.value)))
+ return;
+ try {
+ await q.plugin.systems.phasers.update.netSend({
+ pluginId,
+ systemId: systemId,
+ shipId,
+ shipPluginId,
+ maxArc: Number(e.target.value),
+ });
+ } catch (err) {
+ if (err instanceof Error) {
+ toast({
+ title: "Error changing max arc",
+ body: err.message,
+ color: "error",
+ });
+ }
+ }
+ }}
+ />
+
+
+
+
+ {
+ if (!e.target.value || Number.isNaN(Number(e.target.value)))
+ return;
+ try {
+ await q.plugin.systems.phasers.update.netSend({
+ pluginId,
+ systemId: systemId,
+ shipId,
+ shipPluginId,
+ fullChargeYield: Number(e.target.value),
+ });
+ } catch (err) {
+ if (err instanceof Error) {
+ toast({
+ title: "Error changing full charge yield",
+ body: err.message,
+ color: "error",
+ });
+ }
+ }
+ }}
+ />
+
+
+
+
+ {
+ if (!e.target.value || Number.isNaN(Number(e.target.value)))
+ return;
+ try {
+ await q.plugin.systems.phasers.update.netSend({
+ pluginId,
+ systemId: systemId,
+ shipId,
+ shipPluginId,
+ yieldMultiplier: Number(e.target.value),
+ });
+ } catch (err) {
+ if (err instanceof Error) {
+ toast({
+ title: "Error changing yield multiplier",
+ body: err.message,
+ color: "error",
+ });
+ }
+ }
+ }}
+ />
+
+
+
+
+ {
+ if (!e.target.value || Number.isNaN(Number(e.target.value)))
+ return;
+ try {
+ await q.plugin.systems.torpedoLauncher.update.netSend({
+ pluginId,
+ systemId: systemId,
+ shipId,
+ shipPluginId,
+ headingDegree: Number(e.target.value),
+ });
+ } catch (err) {
+ if (err instanceof Error) {
+ toast({
+ title: "Error changing heading",
+ body: err.message,
+ color: "error",
+ });
+ }
+ }
+ }}
+ />
+
+
+
+
+ {
+ if (!e.target.value || Number.isNaN(Number(e.target.value)))
+ return;
+ try {
+ await q.plugin.systems.torpedoLauncher.update.netSend({
+ pluginId,
+ systemId: systemId,
+ shipId,
+ shipPluginId,
+ pitchDegree: Number(e.target.value),
+ });
+ } catch (err) {
+ if (err instanceof Error) {
+ toast({
+ title: "Error changing pitch",
+ body: err.message,
+ color: "error",
+ });
+ }
+ }
+ }}
+ />
+
+
+