Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ApplyMusicBox()

void Terraria.Player.ApplyMusicBox ( Item currentItem)
inlineprivate

Definition at line 15026 of file Player.cs.

15027 {
15028 if (currentItem.type >= 562 && currentItem.type <= 574)
15029 {
15030 Main.musicBox2 = currentItem.type - 562;
15031 }
15032 if (currentItem.type >= 1596 && currentItem.type <= 1609)
15033 {
15034 Main.musicBox2 = currentItem.type - 1596 + 13;
15035 }
15036 if (currentItem.type == 1610)
15037 {
15038 Main.musicBox2 = 27;
15039 }
15040 if (currentItem.type == 1963)
15041 {
15042 Main.musicBox2 = 28;
15043 }
15044 if (currentItem.type == 1964)
15045 {
15046 Main.musicBox2 = 29;
15047 }
15048 if (currentItem.type == 1965)
15049 {
15050 Main.musicBox2 = 30;
15051 }
15052 if (currentItem.type == 2742)
15053 {
15054 Main.musicBox2 = 31;
15055 }
15056 if (currentItem.type == 3044)
15057 {
15058 Main.musicBox2 = 32;
15059 }
15060 if (currentItem.type == 3235)
15061 {
15062 Main.musicBox2 = 33;
15063 }
15064 if (currentItem.type == 3236)
15065 {
15066 Main.musicBox2 = 34;
15067 }
15068 if (currentItem.type == 3237)
15069 {
15070 Main.musicBox2 = 35;
15071 }
15072 if (currentItem.type == 3370)
15073 {
15074 Main.musicBox2 = 36;
15075 }
15076 if (currentItem.type == 3371)
15077 {
15078 Main.musicBox2 = 37;
15079 }
15080 if (currentItem.type == 3796)
15081 {
15082 Main.musicBox2 = 38;
15083 }
15084 if (currentItem.type == 3869)
15085 {
15086 Main.musicBox2 = 39;
15087 }
15088 if (currentItem.type == 4082)
15089 {
15090 Main.musicBox2 = 40;
15091 }
15092 if (currentItem.type == 4078)
15093 {
15094 Main.musicBox2 = 41;
15095 }
15096 if (currentItem.type == 4079)
15097 {
15098 Main.musicBox2 = 42;
15099 }
15100 if (currentItem.type == 4077)
15101 {
15102 Main.musicBox2 = 43;
15103 }
15104 if (currentItem.type == 4080)
15105 {
15106 Main.musicBox2 = 44;
15107 }
15108 if (currentItem.type == 4081)
15109 {
15110 Main.musicBox2 = 45;
15111 }
15112 if (currentItem.type == 4237)
15113 {
15114 Main.musicBox2 = 46;
15115 }
15116 if (currentItem.type == 4356)
15117 {
15118 Main.musicBox2 = 47;
15119 }
15120 if (currentItem.type == 4357)
15121 {
15122 Main.musicBox2 = 48;
15123 }
15124 if (currentItem.type == 4358)
15125 {
15126 Main.musicBox2 = 49;
15127 }
15128 if (currentItem.type == 4421)
15129 {
15130 Main.musicBox2 = 50;
15131 }
15132 if (currentItem.type == 4606)
15133 {
15134 Main.musicBox2 = 51;
15135 }
15136 if (currentItem.type == 4979)
15137 {
15138 Main.musicBox2 = 52;
15139 }
15140 if (currentItem.type == 4985)
15141 {
15142 Main.musicBox2 = 53;
15143 }
15144 if (currentItem.type == 4990)
15145 {
15146 Main.musicBox2 = 54;
15147 }
15148 if (currentItem.type == 4991)
15149 {
15150 Main.musicBox2 = 55;
15151 }
15152 if (currentItem.type == 4992)
15153 {
15154 Main.musicBox2 = 56;
15155 }
15156 if (currentItem.type == 5006)
15157 {
15158 Main.musicBox2 = 57;
15159 }
15160 if (currentItem.type == 5014)
15161 {
15162 Main.musicBox2 = 58;
15163 }
15164 if (currentItem.type == 5015)
15165 {
15166 Main.musicBox2 = 59;
15167 }
15168 if (currentItem.type == 5016)
15169 {
15170 Main.musicBox2 = 60;
15171 }
15172 if (currentItem.type == 5017)
15173 {
15174 Main.musicBox2 = 61;
15175 }
15176 if (currentItem.type == 5018)
15177 {
15178 Main.musicBox2 = 62;
15179 }
15180 if (currentItem.type == 5019)
15181 {
15182 Main.musicBox2 = 63;
15183 }
15184 if (currentItem.type == 5020)
15185 {
15186 Main.musicBox2 = 64;
15187 }
15188 if (currentItem.type == 5021)
15189 {
15190 Main.musicBox2 = 65;
15191 }
15192 if (currentItem.type == 5022)
15193 {
15194 Main.musicBox2 = 66;
15195 }
15196 if (currentItem.type == 5023)
15197 {
15198 Main.musicBox2 = 67;
15199 }
15200 if (currentItem.type == 5024)
15201 {
15202 Main.musicBox2 = 68;
15203 }
15204 if (currentItem.type == 5025)
15205 {
15206 Main.musicBox2 = 69;
15207 }
15208 if (currentItem.type == 5026)
15209 {
15210 Main.musicBox2 = 70;
15211 }
15212 if (currentItem.type == 5027)
15213 {
15214 Main.musicBox2 = 71;
15215 }
15216 if (currentItem.type == 5028)
15217 {
15218 Main.musicBox2 = 72;
15219 }
15220 if (currentItem.type == 5029)
15221 {
15222 Main.musicBox2 = 73;
15223 }
15224 if (currentItem.type == 5030)
15225 {
15226 Main.musicBox2 = 74;
15227 }
15228 if (currentItem.type == 5031)
15229 {
15230 Main.musicBox2 = 75;
15231 }
15232 if (currentItem.type == 5032)
15233 {
15234 Main.musicBox2 = 76;
15235 }
15236 if (currentItem.type == 5033)
15237 {
15238 Main.musicBox2 = 77;
15239 }
15240 if (currentItem.type == 5034)
15241 {
15242 Main.musicBox2 = 78;
15243 }
15244 if (currentItem.type == 5035)
15245 {
15246 Main.musicBox2 = 79;
15247 }
15248 if (currentItem.type == 5036)
15249 {
15250 Main.musicBox2 = 80;
15251 }
15252 if (currentItem.type == 5037)
15253 {
15254 Main.musicBox2 = 81;
15255 }
15256 if (currentItem.type == 5038)
15257 {
15258 Main.musicBox2 = 82;
15259 }
15260 if (currentItem.type == 5039)
15261 {
15262 Main.musicBox2 = 83;
15263 }
15264 if (currentItem.type == 5040)
15265 {
15266 Main.musicBox2 = 84;
15267 }
15268 if (currentItem.type == 5044)
15269 {
15270 Main.musicBox2 = 85;
15271 }
15272 if (currentItem.type == 5112)
15273 {
15274 Main.musicBox2 = 86;
15275 }
15276 if (currentItem.type == 5362)
15277 {
15278 Main.musicBox2 = 87;
15279 }
15280 Main.musicBoxNotModifiedByVolume = Main.musicBox2;
15281 }

References Terraria.Main.musicBox2.