mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-21 16:13:54 +00:00
Use actionDistance correctly
This commit is contained in:
parent
bd8d376e4a
commit
dbd1e10475
1 changed files with 4 additions and 3 deletions
|
@ -357,7 +357,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
|||
: Object.keys(resourceNodes.value).length === 0
|
||||
? { text: "Click me!" }
|
||||
: null,
|
||||
actionDistance: 100,
|
||||
actionDistance: Math.PI / 4,
|
||||
actions: [togglePoweredAction],
|
||||
progress: node =>
|
||||
isPowered(node)
|
||||
|
@ -376,7 +376,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
|||
title: "🛠️",
|
||||
label: node =>
|
||||
node === board.selectedNode.value ? { text: "Broken Forge" } : null,
|
||||
actionDistance: 100,
|
||||
actionDistance: Math.PI / 4,
|
||||
actions: [
|
||||
{
|
||||
id: "repair",
|
||||
|
@ -430,7 +430,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
|||
}
|
||||
return null;
|
||||
},
|
||||
actionDistance: 100,
|
||||
actionDistance: Math.PI / 4,
|
||||
actions: [
|
||||
{
|
||||
id: "craft",
|
||||
|
@ -571,6 +571,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
|||
}
|
||||
return null;
|
||||
},
|
||||
actionDistance: Math.PI / 4,
|
||||
actions: [
|
||||
{
|
||||
id: "deselect",
|
||||
|
|
Loading…
Reference in a new issue