Mercurial > mm7
comparison Items.cpp @ 2289:60293358b4b3
byte_5111F6 to byte_5111F6_OwnedArtifacts, changed magic numbers to enums in GetItemTextureFilename
author | Grumpy7 |
---|---|
date | Sun, 16 Mar 2014 03:08:26 +0100 |
parents | 406605240b0a |
children | ddb803517a48 |
comparison
equal
deleted
inserted
replaced
2288:406605240b0a | 2289:60293358b4b3 |
---|---|
2122 result = 0; //BUG fn is void | 2122 result = 0; //BUG fn is void |
2123 if ( item_id > 500 ) | 2123 if ( item_id > 500 ) |
2124 { | 2124 { |
2125 switch ( item_id ) | 2125 switch ( item_id ) |
2126 { | 2126 { |
2127 case 516: | 2127 case ITEM_RELIC_HARECS_LEATHER: |
2128 if (byte_5111F6[2] != 0) | 2128 if (byte_5111F6_OwnedArtifacts[2] != 0) |
2129 item_id = 234; | 2129 item_id = 234; |
2130 break; | 2130 break; |
2131 case 505: | 2131 case ITEM_ARTIFACT_YORUBA: |
2132 if (byte_5111F6[1] != 0) | 2132 if (byte_5111F6_OwnedArtifacts[1] != 0) |
2133 item_id = 236; | 2133 item_id = 236; |
2134 break; | 2134 break; |
2135 case 504: | 2135 case ITEM_ARTIFACT_GOVERNORS_ARMOR: |
2136 if (byte_5111F6[0] != 0) | 2136 if (byte_5111F6_OwnedArtifacts[0] != 0) |
2137 item_id = 235; | 2137 item_id = 235; |
2138 break; | 2138 break; |
2139 case 533: | 2139 case ITEM_ELVEN_CHAINMAIL: |
2140 if (byte_5111F6[16] != 0) | 2140 if (byte_5111F6_OwnedArtifacts[16] != 0) |
2141 item_id = 73; | 2141 item_id = 73; |
2142 break; | 2142 break; |
2143 case 512: | 2143 case ITEM_ARTIFACT_LEAGUE_BOOTS: |
2144 if (byte_5111F6[3] != 0) | 2144 if (byte_5111F6_OwnedArtifacts[3] != 0) |
2145 item_id = 312; | 2145 item_id = 312; |
2146 break; | 2146 break; |
2147 case 521: | 2147 case ITEM_RELIC_TALEDONS_HELM: |
2148 if (byte_5111F6[4] != 0) | 2148 if (byte_5111F6_OwnedArtifacts[4] != 0) |
2149 item_id = 239; | 2149 item_id = 239; |
2150 break; | 2150 break; |
2151 case 522: | 2151 case ITEM_RELIC_SCHOLARS_CAP: |
2152 if (byte_5111F6[5] != 0) | 2152 if (byte_5111F6_OwnedArtifacts[5] != 0) |
2153 item_id = 240; | 2153 item_id = 240; |
2154 break; | 2154 break; |
2155 case 523: | 2155 case ITEM_RELIC_PHYNAXIAN_CROWN: |
2156 if (byte_5111F6[6] != 0) | 2156 if (byte_5111F6_OwnedArtifacts[6] != 0) |
2157 item_id = 241; | 2157 item_id = 241; |
2158 break; | 2158 break; |
2159 case 532: | 2159 case ITEM_ARTIFACT_MINDS_EYE: |
2160 if (byte_5111F6[7] != 0) | 2160 if (byte_5111F6_OwnedArtifacts[7] != 0) |
2161 item_id = 93; | 2161 item_id = 93; |
2162 break; | 2162 break; |
2163 case 544: | 2163 case ITEM_RARE_SHADOWS_MASK: |
2164 if (byte_5111F6[8] != 0) | 2164 if (byte_5111F6_OwnedArtifacts[8] != 0) |
2165 item_id = 344; | 2165 item_id = 344; |
2166 break; | 2166 break; |
2167 case 524: | 2167 case ITEM_RILIC_TITANS_BELT: |
2168 if (byte_5111F6[9] != 0) | 2168 if (byte_5111F6_OwnedArtifacts[9] != 0) |
2169 item_id = 324; | 2169 item_id = 324; |
2170 break; | 2170 break; |
2171 case 535: | 2171 case ITEM_ARTIFACT_HEROS_BELT: |
2172 if (byte_5111F6[10] != 0) | 2172 if (byte_5111F6_OwnedArtifacts[10] != 0) |
2173 item_id = 104; | 2173 item_id = 104; |
2174 break; | 2174 break; |
2175 case 525: | 2175 case ITEM_RELIC_TWILIGHT: |
2176 if (byte_5111F6[11] != 0) | 2176 if (byte_5111F6_OwnedArtifacts[11] != 0) |
2177 item_id = 325; | 2177 item_id = 325; |
2178 break; | 2178 break; |
2179 case 530: | 2179 case ITEM_ARTIFACT_CLOAK_OF_THE_SHEEP: |
2180 if (byte_5111F6[12] != 0) | 2180 if (byte_5111F6_OwnedArtifacts[12] != 0) |
2181 item_id = 330; | 2181 item_id = 330; |
2182 break; | 2182 break; |
2183 case 547: | 2183 case ITEM_RARE_SUN_CLOAK: |
2184 if (byte_5111F6[13] != 0) | 2184 if (byte_5111F6_OwnedArtifacts[13] != 0) |
2185 item_id = 347; | 2185 item_id = 347; |
2186 break; | 2186 break; |
2187 case 548: | 2187 case ITEM_RARE_MOON_CLOAK: |
2188 if (byte_5111F6[14] != 0) | 2188 if (byte_5111F6_OwnedArtifacts[14] != 0) |
2189 item_id = 348; | 2189 item_id = 348; |
2190 break; | 2190 break; |
2191 case 550: | 2191 case ITEM_RARE_VAMPIRES_CAPE: |
2192 if (byte_5111F6[15] != 0) | 2192 if (byte_5111F6_OwnedArtifacts[15] != 0) |
2193 item_id = 350; | 2193 item_id = 350; |
2194 break; | 2194 break; |
2195 default: | 2195 default: |
2196 return 0; | 2196 return 0; |
2197 } | 2197 } |