| 151 | } |
| 152 | |
| 153 | void afxRPGMagicSpellData::unpackData(BitStream* stream) |
| 154 | { |
| 155 | Parent::unpackData(stream); |
| 156 | |
| 157 | stream->read(&spell_target); |
| 158 | stream->read(&spell_range); |
| 159 | stream->read(&mana_cost); |
| 160 | stream->read(&n_reagents); |
| 161 | for (S32 i = 0; i < n_reagents; i++) |
| 162 | { |
| 163 | stream->read(&reagent_cost[i]); |
| 164 | reagent_name[i] = stream->readSTString(); |
| 165 | } |
| 166 | |
| 167 | stream->read(&casting_dur); |
| 168 | |
| 169 | spell_name = stream->readSTString(); |
| 170 | { |
| 171 | char value[512]; |
| 172 | stream->readLongString(511, value); |
| 173 | spell_desc = StringTable->insert(value); |
| 174 | } |
| 175 | icon_name = stream->readSTString(); |
| 176 | source_pack = stream->readSTString(); |
| 177 | is_placeholder = stream->readFlag(); |
| 178 | target_optional = stream->readFlag(); |
| 179 | stream->read(&free_target_style); |
| 180 | } |
| 181 | |
| 182 | #define NAME_FMT "<just:left><font:Arial:20><color:FFD200>" |
| 183 | #define TARGET_FMT "<just:right><font:Arial:20><color:ACACAC>" |
nothing calls this directly
no test coverage detected