Skip to content

Commit

Permalink
Implement some tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Damnae committed Dec 31, 2023
1 parent bdc5a49 commit a2c63be
Show file tree
Hide file tree
Showing 9 changed files with 238 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/gamecore/tasks/ByCheckModifierCallBackStatusType.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<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
{
TargetStatusType:string
}
</script>

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

Parameter modifier status type is <em>{{ node.TargetStatusType }}</em>

</BlockLayout>
</template>

<style scoped>
</style>
21 changes: 21 additions & 0 deletions src/gamecore/tasks/ByContainsParamFlag.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<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
{
Flag:string
}
</script>

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

Has <em>{{ node.Flag }}</em> flag

</BlockLayout>
</template>

<style scoped>
</style>
25 changes: 25 additions & 0 deletions src/gamecore/tasks/ClearTargetTimeSlow.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" :cosmetic="true">

Reset the animation speed
<template v-if="node.TargetType">
of <em><EvaluateTargetType :target="node.TargetType" /></em>
</template>

</BlockLayout>
</template>

<style scoped>
</style>
22 changes: 22 additions & 0 deletions src/gamecore/tasks/DebugLog.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<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
{
Level?:string
Message?:string
}
</script>

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

{{ node.Message }}

</BlockLayout>
</template>

<style scoped>
</style>
34 changes: 34 additions & 0 deletions src/gamecore/tasks/RandomSelectDynamicValue.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<script setup lang="ts">
import { GamecoreTask,
DynamicExpression,
} from '@/sources/gamecore';
import useHashStore from '@/common/hashstore';
import BlockLayout from '@/components/BlockLayout.vue';
import EvaluateExpression from '../EvaluateExpression.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
DynamicKey:string
ContextScope:string
ValueList?:DynamicExpression[]
}
if (node.DynamicKey)
useHashStore().register(node.DynamicKey, true)
</script>

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

Set <em v-if="node.ContextScope">{{ node.ContextScope }}.</em><em>{{ node.DynamicKey }}</em>
to a random value in
<template v-for="value in node.ValueList">
<em><EvaluateExpression :expression="value" /></em>,
</template>

</BlockLayout>
</template>

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

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

Set <em>{{ node.DynamicKey }}</em> to the change in energy

</BlockLayout>
</template>

<style scoped>
</style>
21 changes: 21 additions & 0 deletions src/gamecore/tasks/SetUltraSkillAssetPreload.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<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
{
SkillName:string
}
</script>

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

Preload assets for <em>{{ node.SkillName }}</em>

</BlockLayout>
</template>

<style scoped>
</style>
29 changes: 29 additions & 0 deletions src/gamecore/tasks/ShowBattleSkillEnhanced.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
{
TargetType?:GamecoreTargetType
SkillType?:string
IsShow?:boolean
}
</script>

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

Change
<template v-if="node.TargetType">
<em><EvaluateTargetType :target="node.TargetType" /></em>'s
</template>
<em>{{ node.SkillType ?? "Basic ATK" }}</em>
to {{ node.IsShow ? "enhanced" : "normal" }} mode

</BlockLayout>
</template>

<style scoped>
</style>
38 changes: 38 additions & 0 deletions src/gamecore/tasks/SwitchCaseByDynamicValue.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<script setup lang="ts">
import { GamecoreTask,
DynamicExpression,
} from '@/sources/gamecore';
import AnyTask from '../AnyTask.vue';
import BlockLayout from '@/components/BlockLayout.vue';
import EvaluateExpression from '../EvaluateExpression.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
Switch:DynamicExpression
CaseTaskList:
{
Case:DynamicExpression
TaskList:GamecoreTask[]
}[]
}
</script>

<template>
<BlockLayout :source="node">
<span class="flow">Switch <em><EvaluateExpression :expression="node.Switch" /></em></span>
<template #content>
<div class="subblock">
<template v-for="caseTask in node.CaseTaskList">
<span class="flow"><em><EvaluateExpression :expression="caseTask.Case" /></em>:</span>
<template v-for="task in caseTask.TaskList">
<AnyTask :node="task" />
</template>
</template>
</div>
</template>
</BlockLayout>
</template>

<style scoped>
</style>

0 comments on commit a2c63be

Please sign in to comment.