1 import {Biome, MonsterType} from '@prisma/client';
2 import { prisma } from '../src/lib/db';
8 monster_type: [MonsterType.BEAST],
13 time: [{min: 0, max: 24}]
18 time: [{min: 0, max: 24}]
24 monster_type: [MonsterType.FLYING],
29 time: [{min: 0, max: 4}, {min: 20, max: 24}]
34 time: [{min: 0, max: 4}, {min: 20, max: 24}]
39 time: [{min: 0, max: 4}, {min: 20, max: 24}]
45 monster_type: [MonsterType.BEAST],
50 time: [{min: 0, max: 24}]
55 time: [{min: 0, max: 24}]
61 monster_type: [MonsterType.HUMANOID],
66 time: [{min: 0, max: 5}, {min: 16, max: 24}]
71 time: [{min: 0, max: 5}, {min: 16, max: 24}]
76 time: [{min: 0, max: 5}, {min: 16, max: 24}]
82 monster_type: [MonsterType.HUMANOID],
87 time: [{min: 0, max: 5}, {min: 18, max: 24}]
92 time: [{min: 0, max: 5}, {min: 16, max: 24}]
97 time: [{min: 0, max: 5}, {min: 16, max: 24}]
103 monster_type: [MonsterType.INSECT],
108 time: [{min: 8, max: 15}]
113 time: [{min: 8, max: 17}]
119 monster_type: [MonsterType.UNDEAD],
124 time: [{min: 19, max: 24}, {min: 0, max: 3}]
127 type: Biome.WOODLAND,
129 time: [{min: 19, max: 24}, {min: 0, max: 3}]
135 monster_type: [MonsterType.HUMANOID, MonsterType.BEAST],
138 type: Biome.WOODLAND,
140 time: [{min: 0, max: 24}]
145 name: "Giant Scorpion",
146 monster_type: [MonsterType.INSECT, MonsterType.GIANT],
151 time: [{min: 0, max: 24}]
157 onster_type: [MonsterType.BEAST],
160 type: Biome.MOUNTAIN,
162 time: [{min: 0, max: 24}]
167 time: [{min: 0, max: 24}]
173 monster_type: [MonsterType.BEAST],
176 type: Biome.MOUNTAIN,
178 time: [{min: 0, max: 24}]
183 time: [{min: 0, max: 24}]
189 monster_type: [MonsterType.HUMANOID],
192 type: Biome.MOUNTAIN,
194 time: [{min: 0, max: 4}, {min: 20, max: 24}]
199 time: [{min: 0, max: 4}, {min: 20, max: 24}]
205 monsterList.forEach(async monster => {
206 const createdMonster = await prisma.monster.create({
209 monsterType: monster.monster_type
213 await prisma.monsterBiome.createMany({
214 data: monster.availability.map(availability => {
216 biome: availability.type,
217 monsterId: createdMonster.id,
218 weight: availability.weight,
219 time: availability.time