mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	* luck support
* support for distance/wall penalties & no * penalty abilities * reworked damage calculation to fit OH3 formula better
This commit is contained in:
		| @@ -18,7 +18,7 @@ | ||||
| #include "../hch/CObjectHandler.h" | ||||
| #include "../hch/CTownHandler.h" | ||||
| #include "../lib/map.h" | ||||
| #include "../mapHandler.h" | ||||
| #include "mapHandler.h" | ||||
| #include "../stdafx.h" | ||||
| #include <boost/algorithm/string.hpp> | ||||
| #include <boost/algorithm/string/replace.hpp> | ||||
|   | ||||
| @@ -1757,7 +1757,15 @@ void CBattleInterface::mouseMoved(const SDL_MouseMotionEvent &sEvent) | ||||
| 					} | ||||
| 					else if(curInt->cb->battleCanShoot(activeStack,myNumber)) //we can shoot enemy | ||||
| 					{ | ||||
| 						CGI->curh->changeGraphic(1,3); | ||||
| 						if(curInt->cb->battleHasDistancePenalty(activeStack, myNumber) || | ||||
| 							curInt->cb->battleHasWallPenalty(activeStack, myNumber)) | ||||
| 						{ | ||||
| 							CGI->curh->changeGraphic(1,15); | ||||
| 						} | ||||
| 						else | ||||
| 						{ | ||||
| 							CGI->curh->changeGraphic(1,3); | ||||
| 						} | ||||
| 						//setting console text | ||||
| 						char buf[500]; | ||||
| 						//calculating estimated dmg | ||||
|   | ||||
| @@ -29,7 +29,7 @@ | ||||
| #include "../lib/NetPacks.h" | ||||
| #include "../lib/map.h" | ||||
| #include "../lib/VCMIDirs.h" | ||||
| #include "../mapHandler.h" | ||||
| #include "mapHandler.h" | ||||
| #include "../timeHandler.h" | ||||
| #include <boost/lexical_cast.hpp> | ||||
| #include <boost/format.hpp> | ||||
|   | ||||
| @@ -17,7 +17,7 @@ | ||||
| #include "../lib/NetPacks.h" | ||||
| #include "../lib/VCMI_Lib.h" | ||||
| #include "../lib/map.h" | ||||
| #include "../mapHandler.h" | ||||
| #include "mapHandler.h" | ||||
| #include "CConfigHandler.h" | ||||
| #include "Client.h" | ||||
| #include "GUIBase.h" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user