1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Added graphics for GENERAL_DAMAGE_REDUCTION bonus. Files are now in vcmi mod.

This commit is contained in:
DjWarmonger 2014-10-28 19:04:34 +01:00
parent 06983fc346
commit b518fd6ea6
4 changed files with 20 additions and 2 deletions

View File

@ -1,4 +1,4 @@
0.96 -> 0.next 0.96 -> 0.97
GENERAL: GENERAL:
* VCMI can now be compiled with SDL2 * VCMI can now be compiled with SDL2
* (windows) Moved VCMI data directory from '%userprofile%\vcmi' to '%userprofile%\Documents\My Games\vcmi' * (windows) Moved VCMI data directory from '%userprofile%\vcmi' to '%userprofile%\Documents\My Games\vcmi'
@ -17,6 +17,7 @@ GRAPHICS:
* Better upscaling when running in fullscreen mode. * Better upscaling when running in fullscreen mode.
* New creature/commader window * New creature/commader window
* New resolutions and bonus icons are now part of a separate mod * New resolutions and bonus icons are now part of a separate mod
* Added graphics for GENERAL_DAMAGE_REDUCTION bonus (Kuririn)
RANDOM MAP GENERATOR: RANDOM MAP GENERATOR:
* Random map generator now creates complete and playable maps, should match original RMG * Random map generator now creates complete and playable maps, should match original RMG

View File

@ -126,6 +126,12 @@
"description": "Reduces Defense for one attack" "description": "Reduces Defense for one attack"
}, },
"GENERAL_DAMAGE_REDUCTION":
{
"name": "Reduce Damage (${val}%)",
"description": "Reduces physical damage"
},
"FIRE_IMMUNITY": "FIRE_IMMUNITY":
{ {
"name": "Immune to Fire", "name": "Immune to Fire",

View File

@ -232,6 +232,17 @@ std::string CBonusTypeHandler::bonusToGraphics(const Bonus* bonus) const
} }
break; break;
} }
case Bonus::GENERAL_DAMAGE_REDUCTION:
{
switch (bonus->subtype)
{
case 0:
fileName = "DamageReductionMelee.bmp"; break;
case 1:
fileName = "DamageReductionRanged.bmp"; break;
}
break;
}
default: default:
{ {

View File

@ -14,7 +14,7 @@
namespace GameConstants namespace GameConstants
{ {
const std::string VCMI_VERSION = "VCMI 0.96b"; const std::string VCMI_VERSION = "VCMI 0.96c";
const int BFIELD_WIDTH = 17; const int BFIELD_WIDTH = 17;
const int BFIELD_HEIGHT = 11; const int BFIELD_HEIGHT = 11;