Skip to content

Commit

Permalink
Implement some tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Damnae committed Feb 22, 2024
1 parent fe4f31e commit 51fac0e
Show file tree
Hide file tree
Showing 39 changed files with 802 additions and 32 deletions.
2 changes: 1 addition & 1 deletion src/gamecore/tasks/AddModifier.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
</template>
</template>
<template v-if="node.LifeStepImmediately">
<span class="minor">(Tick immediately)</span>
&nbsp;<span class="minor">(Tick immediately)</span>
</template>

<template #content >
Expand Down
11 changes: 6 additions & 5 deletions src/gamecore/tasks/AddWeakByTeamAttackType.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@
<template>
<BlockLayout :source="node">

Add a weakness based on team elements
Add
<template v-if="node.AddWeakCountMax">
up to <em><EvaluateExpression :expression="node.AddWeakCountMax" /></em>
</template>
weakness based on team elements
<template v-if="node.TargetType">
to <em><EvaluateTargetType :target="node.TargetType" /></em>,
to <em><EvaluateTargetType :target="node.TargetType" /></em>
</template>
<template v-if="node.ResistanceDeltaValue">
modifying corresponding RES by <em><EvaluateExpression :expression="node.ResistanceDeltaValue" /></em>
</template>
<template v-if="node.AddWeakCountMax">
with a max of <em><EvaluateExpression :expression="node.AddWeakCountMax" /></em> weaknesses
</template>

</BlockLayout>
Expand Down
26 changes: 26 additions & 0 deletions src/gamecore/tasks/AutoUseUltraSkill.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<script setup lang="ts">
import { GamecoreTask, GamecoreTargetType, } from '@/sources/gamecore';
import BlockLayout from '@/components/BlockLayout.vue';
import EvaluateTargetType from '../EvaluateTargetType.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
Target?:GamecoreTargetType
Enable?:boolean
}
</script>

<template>
<BlockLayout :source="node" :cosmetic="true">

{{ node.Enable ? "Allow" : "Disallow" }} auto battle to use Ultimate skills
<template v-if="node.Target">
on <em><EvaluateTargetType :target="node.Target" /></em>
</template>

</BlockLayout>
</template>

<style scoped>
</style>
30 changes: 30 additions & 0 deletions src/gamecore/tasks/ByCompareStanceCount.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<script setup lang="ts">
import { GamecoreTask, DynamicExpression, GamecoreTargetType, } from '@/sources/gamecore';
import BlockLayout from '@/components/BlockLayout.vue';
import EvaluateExpression from '../EvaluateExpression.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
TargetType?:GamecoreTargetType
CompareType:string
CompareValue:DynamicExpression
}
</script>

<template>
<BlockLayout :source="node">

Toughness count is
<template v-if="node.CompareType">
<em>{{ node.CompareType }}</em> to
</template>
<template v-if="node.CompareValue">
<em><EvaluateExpression :expression="node.CompareValue" /></em>
</template>

</BlockLayout>
</template>

<style scoped>
</style>
39 changes: 39 additions & 0 deletions src/gamecore/tasks/ByDistance.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<script setup lang="ts">
import { GamecoreTask, DynamicExpression, GamecoreTargetType, } from '@/sources/gamecore';
import BlockLayout from '@/components/BlockLayout.vue';
import EvaluateTargetType from '../EvaluateTargetType.vue';
import EvaluateExpression from '../EvaluateExpression.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
From?:GamecoreTargetType
To?:GamecoreTargetType
CompareType:string
CompareValue:DynamicExpression
}
</script>

<template>
<BlockLayout :source="node">

Distance
<template v-if="node.From">
from <em><EvaluateTargetType :target="node.From" /></em>
</template>
<template v-if="node.To">
to <em><EvaluateTargetType :target="node.To" /></em>
</template>
is
<template v-if="node.CompareType">
<em>{{ node.CompareType }}</em> to
</template>
<template v-if="node.CompareValue">
<em><EvaluateExpression :expression="node.CompareValue" /></em>
</template>

</BlockLayout>
</template>

<style scoped>
</style>
25 changes: 25 additions & 0 deletions src/gamecore/tasks/ByHasSummonRelation.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<script setup lang="ts">
import { GamecoreTask, GamecoreTargetType, } from '@/sources/gamecore';
import BlockLayout from '@/components/BlockLayout.vue';
import EvaluateTargetType from '../EvaluateTargetType.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
SummonerType:GamecoreTargetType
ServantType:GamecoreTargetType
}
</script>

<template>
<BlockLayout :source="node">

<em><EvaluateTargetType :target="node.ServantType" /></em>
is summonned by
<em><EvaluateTargetType :target="node.SummonerType" /></em>

</BlockLayout>
</template>

<style scoped>
</style>
20 changes: 20 additions & 0 deletions src/gamecore/tasks/ByIsAutoBattle.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<script setup lang="ts">
import { GamecoreTask, } from '@/sources/gamecore';
import BlockLayout from '@/components/BlockLayout.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
}
</script>

<template>
<BlockLayout :source="node">

Auto battle is enabled

</BlockLayout>
</template>

<style scoped>
</style>
25 changes: 25 additions & 0 deletions src/gamecore/tasks/ByIsBattleEventEntity.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<script setup lang="ts">
import { GamecoreTask, GamecoreTargetType, } from '@/sources/gamecore';
import BlockLayout from '@/components/BlockLayout.vue';
import EvaluateTargetType from '../EvaluateTargetType.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
TargetType?:GamecoreTargetType
}
</script>

<template>
<BlockLayout :source="node">

<template v-if="node.TargetType">
<em><EvaluateTargetType :target="node.TargetType" /></em>
</template>
is a battle event entity

</BlockLayout>
</template>

<style scoped>
</style>
25 changes: 25 additions & 0 deletions src/gamecore/tasks/ByIsEnemy.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<script setup lang="ts">
import { GamecoreTask, GamecoreTargetType, } from '@/sources/gamecore';
import BlockLayout from '@/components/BlockLayout.vue';
import EvaluateTargetType from '../EvaluateTargetType.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
TargetTypeA:GamecoreTargetType
TargetTypeB:GamecoreTargetType
}
</script>

<template>
<BlockLayout :source="node">

<em><EvaluateTargetType :target="node.TargetTypeA" /></em>
is an enemy of
<em><EvaluateTargetType :target="node.TargetTypeB" /></em>

</BlockLayout>
</template>

<style scoped>
</style>
30 changes: 30 additions & 0 deletions src/gamecore/tasks/ByTargetIsStanceWeak.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<script setup lang="ts">
import { GamecoreTask, GamecoreTargetType, } from '@/sources/gamecore';
import BlockLayout from '@/components/BlockLayout.vue';
import EvaluateTargetType from '../EvaluateTargetType.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
AttackerType?:GamecoreTargetType
TargetType?:GamecoreTargetType
}
</script>

<template>
<BlockLayout :source="node">

<template v-if="node.TargetType">
<em><EvaluateTargetType :target="node.TargetType" /></em>
</template>
is weak to
<template v-if="node.AttackerType">
<em><EvaluateTargetType :target="node.AttackerType" /></em>'s
</template>
element

</BlockLayout>
</template>

<style scoped>
</style>
30 changes: 30 additions & 0 deletions src/gamecore/tasks/ByTargetIsStanceWeakForCurrentHit.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<script setup lang="ts">
import { GamecoreTask, GamecoreTargetType, } from '@/sources/gamecore';
import BlockLayout from '@/components/BlockLayout.vue';
import EvaluateTargetType from '../EvaluateTargetType.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
AttackerType?:GamecoreTargetType
TargetType?:GamecoreTargetType
}
</script>

<template>
<BlockLayout :source="node">

<template v-if="node.TargetType">
<em><EvaluateTargetType :target="node.TargetType" /></em>
</template>
is weak to
<template v-if="node.AttackerType">
<em><EvaluateTargetType :target="node.AttackerType" /></em>'s
</template>
current hit's element

</BlockLayout>
</template>

<style scoped>
</style>
30 changes: 30 additions & 0 deletions src/gamecore/tasks/ByTargetIsStanceWeakForCurrentSkill.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<script setup lang="ts">
import { GamecoreTask, GamecoreTargetType, } from '@/sources/gamecore';
import BlockLayout from '@/components/BlockLayout.vue';
import EvaluateTargetType from '../EvaluateTargetType.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
AttackerType?:GamecoreTargetType
TargetType?:GamecoreTargetType
}
</script>

<template>
<BlockLayout :source="node">

<template v-if="node.TargetType">
<em><EvaluateTargetType :target="node.TargetType" /></em>
</template>
is weak to
<template v-if="node.AttackerType">
<em><EvaluateTargetType :target="node.AttackerType" /></em>'s
</template>
current skill's element

</BlockLayout>
</template>

<style scoped>
</style>
29 changes: 29 additions & 0 deletions src/gamecore/tasks/CloneWeakness.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<script setup lang="ts">
import { GamecoreTask, GamecoreTargetType, } from '@/sources/gamecore';
import BlockLayout from '@/components/BlockLayout.vue';
import EvaluateTargetType from '../EvaluateTargetType.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
SourceType?:GamecoreTargetType
TargetType?:GamecoreTargetType
}
</script>

<template>
<BlockLayout :source="node">

Clone weaknesses
<template v-if="node.SourceType">
from <em><EvaluateTargetType :target="node.SourceType" /></em>
</template>
<template v-if="node.TargetType">
to <em><EvaluateTargetType :target="node.TargetType" /></em>
</template>

</BlockLayout>
</template>

<style scoped>
</style>
9 changes: 4 additions & 5 deletions src/gamecore/tasks/DefineDynamicValue.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<script setup lang="ts">
import { GamecoreTask,
GamecoreTargetType,
DynamicExpression,
} from '@/sources/gamecore';
import { GamecoreTask, GamecoreTargetType, DynamicExpression, } from '@/sources/gamecore';
import BlockLayout from '@/components/BlockLayout.vue';
import EvaluateExpression from '../EvaluateExpression.vue';
Expand All @@ -20,7 +17,9 @@
<BlockLayout :source="node">

Define <em v-if="node.ContextScope">{{ node.ContextScope }}.</em><em>{{ node.DynamicKey }}</em>
to <em><EvaluateExpression :expression="node.ResetValue" /></em>
<template v-if="node.ResetValue">
to <em><EvaluateExpression :expression="node.ResetValue" /></em>
</template>

</BlockLayout>
</template>
Expand Down
Loading

0 comments on commit 51fac0e

Please sign in to comment.