File: battleEffects.json

package info (click to toggle)
vcmi 1.6.5%2Bdfsg-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 32,060 kB
  • sloc: cpp: 238,971; python: 265; sh: 224; xml: 157; ansic: 78; objc: 61; makefile: 49
file content (113 lines) | stat: -rw-r--r-- 2,602 bytes parent folder | download
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
	"colorMuxers" : {
		"example" : [
			{
				// Required. Time point at which this effect will be applied at full puwer. 
				// Must be greater than time point of previous effect
				// During playback, effects will be played with smooth transition
				// Effect will end once game reaches time point of the final filter 
				// Effect of final step will be applied to stack permanently for duration of the spell
				// Note that actual speed of animation is subject to changes from in-game animation speed setting
				"time" : 0.0,

				// Optional. Transformation filter for red, green and blue components of a color
				// Applies transformation with specified parameters to each channel. Formula:
				// result = red * (value 1) + green * (value 2) + blue * (value 3) + (value 4)
				"red"   : [ 1.0, 0.0, 0.0, 0.0 ],
				"green" : [ 0.0, 1.0, 0.0, 0.0 ],
				"blue"  : [ 0.0, 0.0, 1.0, 0.0 ],
				
				/// Optional. Transparency filter, makes stack appear semi-transparent, used mostly for fade-in effects
				/// Value 0 = full transparency, 1 = fully opaque
				"alpha" : 1.0
			}
		],
	
		"petrification" : [
			{
				"time" : 0.0
			},
			{
				"time"  : 1.0,
				// Conversion to grayscale, using human eye perception factor for channels
				"red"   : [ 0.299, 0.587, 0.114, 0.0 ],
				"green" : [ 0.299, 0.587, 0.114, 0.0 ],
				"blue"  : [ 0.299, 0.587, 0.114, 0.0 ],
			}
		],
		"cloning" : [
			{ 
				// No fade in - will be handled by summonFadeIn effect
				"time" : 0.0, 
				"red"   : [ 0.5, 0.0, 0.0, 0.0 ],
				"green" : [ 0.0, 0.5, 0.0, 0.0 ],
				"blue"  : [ 0.0, 0.0, 0.5, 0.5 ],
			}
		],
		"summonFadeIn" : [
			{
				"time" : 0.0,
				"alpha" : 0.0
			},
			{
				"time" : 1.0
			},
		],
		"summonFadeOut" : [
			{
				"time" : 0.0
			},
			{
				"time" : 1.0,
				"alpha" : 0.0
			},
		],
		"teleportFadeIn" : [
			{
				"time" : 0.0,
				"alpha" : 0.0
			},
			{
				"time" : 0.5
			},
		],
		"teleportFadeOut" : [
			{
				"time" : 0.0
			},
			{
				"time" : 0.5,
				"alpha" : 0.0
			},
		],
		"bloodlust" : [
			{
				"time" : 0.0
			},
			{
				"time"  : 0.25, 
				"red"   : [ 0.5, 0.0, 0.5, 0.4 ],
				"green" : [ 0.0, 1.0, 0.0, 0.0 ],
				"blue"  : [ 0.0, 0.0, 1.0, 0.0 ],
				"alpha" : 1.0
			},
			{
				"time"  : 0.5, 
				"red"   : [ 0.6, 0.6, 0.6, 0.0 ],
				"green" : [ 0.0, 0.5, 0.0, 0.0 ],
				"blue"  : [ 0.0, 0.0, 0.5, 0.0 ],
				"alpha" : 1.0
			},
			{
				"time"  : 0.75, 
				"red"   : [ 0.5, 0.0, 0.5, 0.4 ],
				"green" : [ 0.0, 1.0, 0.0, 0.0 ],
				"blue"  : [ 0.0, 0.0, 1.0, 0.0 ],
				"alpha" : 1.0
			},
			{
				"time" : 1.0,
			},
		],
	}
}