|
|
|
@@ -60,6 +60,9 @@ |
|
|
|
<button v-if="subject.perspective === POV.Third" @click.stop="subject.perspective = POV.Second">Second-person</button> |
|
|
|
<button v-if="subject.perspective === POV.First" @click.stop="subject.perspective = POV.Third">Third-person</button> |
|
|
|
<button v-if="subject.perspective === POV.Second" @click.stop="subject.perspective = POV.First">First-person</button> |
|
|
|
<select @change="subject.ai = new ais[$event.target.selectedIndex]()"> |
|
|
|
<option v-for="(ai, index) in ais" :key="'ai-' + index">{{ ai.name }}</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@@ -68,6 +71,7 @@ |
|
|
|
import { Component, Prop, Vue, Watch, Emit } from 'vue-property-decorator' |
|
|
|
import { Creature } from '@/game/creature' |
|
|
|
import { POV } from '@/game/language' |
|
|
|
import { NoAI, RandomAI } from '@/game/ai' |
|
|
|
import { Stats, Stat, StatIcons, StatDescs, Vigor, VigorIcons, VigorDescs, VoreStatDescs, VoreStatIcons, VisibleStatus } from '@/game/combat' |
|
|
|
import ContainerView from './ContainerView.vue' |
|
|
|
import tippy, { delegate, createSingleton } from 'tippy.js' |
|
|
|
@@ -79,7 +83,8 @@ import 'tippy.js/dist/tippy.css' |
|
|
|
}, |
|
|
|
data () { |
|
|
|
return { |
|
|
|
POV: POV |
|
|
|
POV: POV, |
|
|
|
ais: [NoAI, RandomAI] |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|