Newer
Older
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// @ts-check
/* globals CloseOptions */
/**
* @type {CanvasModelOptions<CloseOptions>}
*/
const combatCloseChest = {
name: "combatCloseChest",
width: 64,
height: 64,
frames: 6,
generatedOptions() {
return [];
},
defaultOptions() {
return {
root: "img/newsex/close/",
position: "missionary",
showChest: false,
filters: {
worn: {},
},
};
},
preprocess(options) {
getCloseOptions(options);
},
layers: {
chest: {
srcfn(options) {
return `${options.src}chest/${options.chest.base}.png`;
},
showfn(options) {
return !!options.showChest;
},
animationfn(options) {
return options.animKeyChest;
},
filters: ["body"],
z: ZIndices.closeBase,
},
breasts: {
srcfn(options) {
return `${options.src}chest/${options.chest.breasts}-job.png`;
},
showfn(options) {
return !!options.showChest && options.chest.base === "base-job" && V.player.breastsize > 0;
},
animationfn(options) {
return options.animKeyChest;
},
filters: ["body"],
z: ZIndices.closeNpc + 1,
},
npc: {
srcfn(options) {
return `${options.src}chest/npc/${options.chest.npc}.png`;
},
showfn(options) {
return !!options.showChest && ["penis", "tentacle"].includes(V.chestuse);
},
animationfn(options) {
return options.animKeyChest;
},
filtersfn(options) {
return options.chest.npc === "tentacle" ? ["chestTentacle"] : ["chestNpc"];
},
alphafn(options) {
const isWraith = ["tentacles-wraith", "tentacles-wraith-penetrated"].includes(V.tentacleColour);
return options.chest.npc === "tentacle" && isWraith ? 0.8 : 1;
},
brightnessfn(options) {
const isWraith = ["tentacles-wraith", "tentacles-wraith-penetrated"].includes(V.tentacleColour);
return options.chest.npc === "tentacle" && isWraith ? 0.2 : 0;
},
z: ZIndices.closeNpc,
},
npcCondom: {
srcfn(options) {
return `${options.src}chest/npc/penis-condom.png`;
},
showfn(options) {
return !!options.showChest && options.chest.npc === "penis" && !!options.chest.condom;
},
animationfn(options) {
return options.animKeyChest;
},
filters: ["chestCondom"],
alpha: 0.4,
z: ZIndices.closeNpc,
},
},
};
Renderer.CanvasModels.combatCloseChest = combatCloseChest;