- Added keys on the automap for Heretic in easy mode, courtesy of Gez.

SVN r3356 (trunk)
This commit is contained in:
Randy Heit 2012-02-12 02:45:48 +00:00
commit 5a95c997d1
5 changed files with 76 additions and 2 deletions

View file

@ -66,6 +66,7 @@ void FMapInfoParser::ParseSkill ()
skill.FastMonsters = false;
skill.DisableCheats = false;
skill.EasyBossBrain = false;
skill.EasyKey = false;
skill.AutoUseHealth = false;
skill.RespawnCounter = 0;
skill.RespawnLimit = 0;
@ -125,6 +126,10 @@ void FMapInfoParser::ParseSkill ()
{
skill.EasyBossBrain = true;
}
else if (sc.Compare ("easykey"))
{
skill.EasyKey = true;
}
else if (sc.Compare("autousehealth"))
{
skill.AutoUseHealth = true;
@ -351,6 +356,9 @@ int G_SkillProperty(ESkillProperty prop)
case SKILLP_EasyBossBrain:
return AllSkills[gameskill].EasyBossBrain;
case SKILLP_EasyKey:
return AllSkills[gameskill].EasyKey;
case SKILLP_SpawnFilter:
return AllSkills[gameskill].SpawnFilter;
@ -428,6 +436,7 @@ FSkillInfo &FSkillInfo::operator=(const FSkillInfo &other)
DisableCheats = other.DisableCheats;
AutoUseHealth = other.AutoUseHealth;
EasyBossBrain = other.EasyBossBrain;
EasyKey = other.EasyKey;
RespawnCounter= other.RespawnCounter;
RespawnLimit= other.RespawnLimit;
Aggressiveness= other.Aggressiveness;