-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathupdate.sh
executable file
·169 lines (132 loc) · 3.05 KB
/
update.sh
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
#!/bin/bash
source ./ini_val.sh
sed -i 's/#008080/#004000/g' 'engine.ini'
mv script/player/peach.lua script/player/kood.lua
mv script/player/mario.lua script/player/demo.lua
mv script/player/luigi.lua script/player/iris.lua
mv script/player/toad.lua script/player/raocow.lua
mv script/player/link.lua script/player/steath.lua
sed -i 's/name\=\"Peach\"/name\=\"Kood\"/g' 'lvl_characters.ini'
sed -i 's/name\=\"Mario\"/name\=\"Demo\"/g' 'lvl_characters.ini'
sed -i 's/name\=\"Luigi\"/name\=\"Iris\"/g' 'lvl_characters.ini'
sed -i 's/name\=\"Toad\"/name\=\"Raocow\"/g' 'lvl_characters.ini'
sed -i 's/name\=\"Link\"/name\=\"Steath\"/g' 'lvl_characters.ini'
sed -i 's/folder\=\"peach\"/folder\=\"Kood\"/g' 'lvl_characters.ini'
sed -i 's/folder\=\"mario\"/folder\=\"Demo\"/g' 'lvl_characters.ini'
sed -i 's/folder\=\"luigi\"/folder\=\"Iris\"/g' 'lvl_characters.ini'
sed -i 's/folder\=\"toad\"/folder\=\"Raocow\"/g' 'lvl_characters.ini'
sed -i 's/folder\=\"link\"/folder\=\"Steath\"/g' 'lvl_characters.ini'
sed -i 's/peach/kood/g' 'lvl_characters.ini'
sed -i 's/mario/demo/g' 'lvl_characters.ini'
sed -i 's/luigi/iris/g' 'lvl_characters.ini'
sed -i 's/toad/raocow/g' 'lvl_characters.ini'
sed -i 's/link/steath/g' 'lvl_characters.ini'
# New NPCs
updateEffect()
{
dos2unix -q "items/npc/npc-$1.ini"
if [ "$GFX_FRAMES" != "" ]; then
ini_val "lvl_effects.ini" effect-$1.frames $GFX_FRAMES
fi
unix2dos -q "lvl_effects.ini"
unset GFX_FRAMES
}
updNpc()
{
dos2unix -q "items/npc/npc-$1.ini"
if [ "$GFX_H" != "" ]; then
sed -i "s/gfx-height.*/gfx-height = $GFX_H/g" "items/npc/npc-$1.ini"
fi
if [ "$GFX_W" != "" ]; then
sed -i "s/gfx-width.*/gfx-width = $GFX_W/g" "items/npc/npc-$1.ini"
fi
if [ "$GFX_FS" != "" ]; then
sed -i "s/frame-style.*/frame-style = $GFX_FS/g" "items/npc/npc-$1.ini"
fi
if [ "$GFX_FRAMES" != "" ]; then
sed -i "s/frames.*=.*/frames = $GFX_FRAMES/g" "items/npc/npc-$1.ini"
fi
if [ "$NPC_NAME" != "" ]; then
sed -i "s/name.*=.*/name = \"$NPC_NAME\"/g" "items/npc/npc-$1.ini"
fi
unix2dos -q "items/npc/npc-$1.ini"
unset GFX_FS
unset GFX_H
unset GFX_W
unset GFX_FRAMES
unset NPC_NAME
}
GFX_FRAMES=4
GFX_FS=1
NPC_NAME="Gummy"
updNpc 1
GFX_FRAMES=4
updateEffect 4
GFX_FS=1
updNpc 2
GFX_FS=1
updNpc 3
GFX_FS=1
updNpc 27
GFX_FS=1
updNpc 59
GFX_FS=1
updNpc 61
GFX_FS=1
updNpc 63
GFX_FS=1
updNpc 65
GFX_FS=1
updNpc 71
GFX_FS=1
updNpc 89
GFX_W=48
GFX_H=48
GFX_FRAMES=1
updNpc 16
GFX_W=56
GFX_H=68
GFX_FRAMES=1
updNpc 37
GFX_FRAMES=6
updNpc 125
GFX_W=40
GFX_H=38
GFX_FRAMES=2
GFX_FS=2
NPC_NAME="Blastor (red)"
updNpc 130
GFX_W=40
GFX_H=38
GFX_FRAMES=2
GFX_FS=2
NPC_NAME="Blastor (dark cyan)"
updNpc 131
GFX_W=40
GFX_H=38
GFX_FRAMES=2
GFX_FS=2
NPC_NAME="Blastor (grey)"
updNpc 132
GFX_W=16
GFX_H=16
NPC_NAME="Blastor bullet"
updNpc 133
GFX_W=32
GFX_H=40
GFX_FS=1
GFX_FRAMES=3
NPC_NAME="Punken"
updNpc 165
GFX_W=32
GFX_H=36
GFX_FRAMES=2
GFX_FS=1
NPC_NAME="Punken (Stomped)"
updNpc 166
GFX_W=36
GFX_H=54
GFX_FS=0
GFX_FRAMES=2
NPC_NAME="Octolot"
updNpc 235