Skip to content

Commit

Permalink
Fixed crafting Shield spell resistance
Browse files Browse the repository at this point in the history
  • Loading branch information
DMD authored and DMD committed Sep 6, 2016
1 parent 9a98c44 commit 0ff6a31
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion TemplePlus/fonts/fonts_layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ int TextLayouter::GetGlyphIdx(char ch, const char* text) {
case 0x97:
return GetGlyphIdx('-', text);
default:
return GetGlyphIdx(' ', text); // speak english or die!!!
return GetGlyphIdx('-', text); // speak english or die!!!
}
}

Expand Down
4 changes: 4 additions & 0 deletions TemplePlus/gamesystems/objects/gameobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ struct GameObjectBody {
void SetLocation(locXY location);

Dispatcher* GetDispatcher() const {
//if (type == obj_t_portal){
// //return nullptr; //should be nullptr anyway
// int dummy = 1;
//}
uint32_t dispatcher = GetInt32(obj_f_dispatcher);
if (dispatcher == -1 || dispatcher == 0) {
return nullptr;
Expand Down
8 changes: 4 additions & 4 deletions tpdata/tprules/craft_maa_specs.tab
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
407 Shield Light Fortification IESF_SHIELD 1 0 C3
408 Shield Arrow Deflection IESF_SHIELD 1 0 C3
409 Shield Animated IESF_SHIELD 1 0 C3
410 Shield Spell Resistance IESF_ENABLED IESF_SHIELD IESF_INCREMENTAL 2 13 C15 'spell resistance'
411 Shield Spell Resistance IESF_ENABLED IESF_SHIELD IESF_INCREMENTAL 3 15 C15 'spell resistance' 410
412 Shield Spell Resistance IESF_ENABLED IESF_SHIELD IESF_INCREMENTAL 4 17 C15 'spell resistance' 411
413 Shield Spell Resistance IESF_ENABLED IESF_SHIELD IESF_INCREMENTAL 5 19 C15 'spell resistance' 412
410 Armor Spell Resistance IESF_ENABLED IESF_SHIELD IESF_INCREMENTAL 2 13 C15 'spell resistance'
411 Armor Spell Resistance IESF_ENABLED IESF_SHIELD IESF_INCREMENTAL 3 15 C15 'spell resistance' 410
412 Armor Spell Resistance IESF_ENABLED IESF_SHIELD IESF_INCREMENTAL 4 17 C15 'spell resistance' 411
413 Armor Spell Resistance IESF_ENABLED IESF_SHIELD IESF_INCREMENTAL 5 19 C15 'spell resistance' 412

0 comments on commit 0ff6a31

Please sign in to comment.