-
Notifications
You must be signed in to change notification settings - Fork 0
/
Chtholly.js
56 lines (52 loc) · 1.26 KB
/
Chtholly.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* reference
* http://sukasuka-anime.com/chara/chtholly.html#c_list_block_0002
* http://suka-suka.wikia.com/wFairy Soldier Grade Siki/Chtholly/Kutori_Nota_Seniorious
*/
const Chtholly = {
fullName: 'Chtholly Nota Seniorious',
age: 15,
race: 'Leprechaun',
gender: 'Female',
eyeColor: 'Ocean Blue',
hairColor: 'Sky Blue',
occupation: 'Fairy Soldier Grade S',
cv: 'Azusa Tadokoro'
}
const is = () => ({
Chtholly: () => {
let question = {}
for (key in Chtholly) {
let val = Chtholly[key]
question[key] = answer => {
if (typeof answer === 'number') return answer === val
return answer.toLowerCase() === String(val).toLowerCase()
}
}
return question
}
})
const 柯朵莉constructor = () => {
let question = {}
let info = {
全名: '珂朵莉·诺塔·瑟尼欧里斯',
年龄: '15',
种族: '黄金妖精族',
性别: '女',
瞳色: '海蓝',
发色: '天蓝',
所属: '成体妖精兵',
声优: '田所梓'
}
for (key in info) {
let val = info[key]
question[key] = answer => {
return {
吗() {
return answer[0].toLowerCase() === String(val).toLowerCase()
}
}
}
}
return question
}
const 柯朵莉 = 柯朵莉constructor()