Skip to content

Commit

Permalink
- Tweaks :V
Browse files Browse the repository at this point in the history
  • Loading branch information
LordMisfit committed Dec 4, 2016
1 parent 856c412 commit 0f2085a
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 13 deletions.
1 change: 1 addition & 0 deletions CVARINFO.txt
Expand Up @@ -84,6 +84,7 @@ server int dvds_mapdifficultyinflationStats = 0;
server int dvds_mapdifficultyinflationSpawnStealth = 0;

server int dvds_leveldifficultyinflation = 0;
server int dvds_leveldifficultyinflation2 = 0;
server float dvds_monsterlevelstatfactor = 1.0;

server float dvds_monsterattackratio_skill = 1.0;
Expand Down
2 changes: 1 addition & 1 deletion KEYCONF.txt
Expand Up @@ -8,7 +8,7 @@ alias dvds_defaults4 "set dvds_pistolrestart_allkeepsauronequip 1; set dvds_pist

alias dvds_defaults5 "set dvds_noexpgains 0; set dvds_monsterexpbase 0; set dvds_exppropercredit 1; set dvds_expcombosystem 1; set dvds_expcombotimermultiplier 0; set dvds_expcombobasemultiplier 0; set dvds_baseexprequirement 2000; set dvds_baseexpextra 1; set dvds_baseexpaccel1 3; set dvds_baseexpaccel2 96"

alias dvds_defaults6 "set dvds_mapdifficultyinflationOVERALL 0; set dvds_mapdifficultyinflationEXP 0; set dvds_mapdifficultyinflationStats 0; set dvds_mapdifficultyinflationSpawnStealth 0; set dvds_leveldifficultyinflation 0; set dvds_skilllevelcalctype 1; set dvds_monsterspeedratio_skill 1.0; set dvds_monsterspeedratio_maps 1.0; set dvds_monsterspeedratio_levels 1.0; set dvds_monsterattackratio_skill 1.0; set dvds_monsterattackratio_maps 1.0; set dvds_monsterattackratio_levels 1.0; set dvds_monsterdefenseratio_skill 1.0; set dvds_monsterdefenseratio_maps 1.0; set dvds_monsterdefenseratio_levels 1.0; set dvds_monstermaxhpratio_skill 1.0; set dvds_monstermaxhpratio_maps 1.0; set dvds_monstermaxhpratio_levels 1.0; set dvds_monsterbalanceratio_skill 1.0; set dvds_monsterbalanceratio_maps 1.0; set dvds_monsterbalanceratio_levels 1.0; set dvds_monsterstatcalc_skill 1; set dvds_monsterstatcalc_maps 1; set dvds_monsterstatcalc_levels 1; set dvds_monsterstatcalc_varience 1; set dvds_monsterattackvarience 0.1; set dvds_monsterdefensevarience 0.1; set dvds_monsterspeedvarience 0.1; set dvds_monstermaxhpvarience 0.1; set dvds_monsterbalancevarience 0.1; dvds_monsterlevelstatfactor 1.0"
alias dvds_defaults6 "set dvds_mapdifficultyinflationOVERALL 0; set dvds_mapdifficultyinflationEXP 0; set dvds_mapdifficultyinflationStats 0; set dvds_mapdifficultyinflationSpawnStealth 0; set dvds_leveldifficultyinflation 0; set dvds_leveldifficultyinflation2 0; set dvds_skilllevelcalctype 1; set dvds_monsterspeedratio_skill 1.0; set dvds_monsterspeedratio_maps 1.0; set dvds_monsterspeedratio_levels 1.0; set dvds_monsterattackratio_skill 1.0; set dvds_monsterattackratio_maps 1.0; set dvds_monsterattackratio_levels 1.0; set dvds_monsterdefenseratio_skill 1.0; set dvds_monsterdefenseratio_maps 1.0; set dvds_monsterdefenseratio_levels 1.0; set dvds_monstermaxhpratio_skill 1.0; set dvds_monstermaxhpratio_maps 1.0; set dvds_monstermaxhpratio_levels 1.0; set dvds_monsterbalanceratio_skill 1.0; set dvds_monsterbalanceratio_maps 1.0; set dvds_monsterbalanceratio_levels 1.0; set dvds_monsterstatcalc_skill 1; set dvds_monsterstatcalc_maps 1; set dvds_monsterstatcalc_levels 1; set dvds_monsterstatcalc_varience 1; set dvds_monsterattackvarience 0.1; set dvds_monsterdefensevarience 0.1; set dvds_monsterspeedvarience 0.1; set dvds_monstermaxhpvarience 0.1; set dvds_monsterbalancevarience 0.1; dvds_monsterlevelstatfactor 1.0"

alias dvds_defaultsrandomizer "set dvds_rnd_evolve 1; set dvds_rnd_evolvechance 43; set dvds_rnd_evolve_levels 1; set dvds_rnd_evolve_chars 1; set dvds_rnd_evolve_skill 1; set dvds_rnd_evolve_sauronequip 1; set dvds_rnd_evolve_maps 1; set dvds_rnd_stealth 1; set dvds_rnd_stealthlevel 2; set dvds_rnd_stealth_levels 1; set dvds_rnd_stealth_chars 1; set dvds_rnd_stealth_skill 1; set dvds_rnd_stealth_maps 1; set dvds_rnd_stealthchance 11;"

Expand Down
3 changes: 2 additions & 1 deletion MENUDEF.txt
Expand Up @@ -1839,7 +1839,8 @@ OptionMenu "DVDS-SubMenu6"
TextField "Map Difficulty Inflate [Stats]", "dvds_mapdifficultyinflationStats"
TextField "Map Difficulty Inflate [Spwn/Stel]", "dvds_mapdifficultyinflationSpawnStealth"
StaticText " "
TextField "Level Difficulty Inflate", "dvds_leveldifficultyinflation"
TextField "Level Difficulty Inflate [Exact]", "dvds_leveldifficultyinflation"
TextField "Level Difficulty Inflate [Percentile]", "dvds_leveldifficultyinflation2"
TextField "Level Stats Factor", "dvds_monsterlevelstatfactor"
StaticText " "
TextField "Monster Atk Factor (Skill)", "dvds_monsterattackratio_skill"
Expand Down
Binary file modified acs/spelllib.o
Binary file not shown.
12 changes: 12 additions & 0 deletions decorate/WeaponsAmmo.dec
Expand Up @@ -14395,6 +14395,9 @@ ACTOR HubbleBubbleSmall
A_SetUserVar("user_sizepulsetype",0);
A_SetUserVar("user_maxbubbletimer",random(270,315));
A_SetUserVar("user_maxripperinterval",random(16,24));
A_SetUserVar("user_maxripperinterval",user_maxripperinterval-(CallACS("StatCheck",6)/16)); // Sorcery
A_SetUserVar("user_maxripperinterval",user_maxripperinterval-(CallACS("StatCheck",8)/32)); // Therapeusis
if (user_maxripperinterval < 4) { A_SetUserVar("user_maxripperinterval",4); }
A_SetUserVar("user_halfmaxripperinterval",user_maxripperinterval/2);
Thing_ChangeTID(0,5001);
}
Expand Down Expand Up @@ -14450,6 +14453,9 @@ ACTOR HubbleBubbleSmall
A_ChangeFlag("FORCEPAIN",1);
A_SetUserVar("user_ripperinterval",0);
A_SetUserVar("user_maxripperinterval",random(16,24));
A_SetUserVar("user_maxripperinterval",user_maxripperinterval-(CallACS("StatCheck",6)/16)); // Sorcery
A_SetUserVar("user_maxripperinterval",user_maxripperinterval-(CallACS("StatCheck",8)/32)); // Therapeusis
if (user_maxripperinterval < 4) { A_SetUserVar("user_maxripperinterval",4); }
A_SetUserVar("user_halfmaxripperinterval",user_maxripperinterval/2);
}
A_SetUserVar("user_bubbletimer",user_bubbletimer+1);
Expand Down Expand Up @@ -14503,6 +14509,9 @@ ACTOR HubbleBubbleLarge : HubbleBubbleSmall
A_SetUserVar("user_sizepulsetype",0);
A_SetUserVar("user_maxbubbletimer",random(405,467));
A_SetUserVar("user_maxripperinterval",random(16,24));
A_SetUserVar("user_maxripperinterval",user_maxripperinterval-(CallACS("StatCheck",6)/16)); // Sorcery
A_SetUserVar("user_maxripperinterval",user_maxripperinterval-(CallACS("StatCheck",8)/32)); // Therapeusis
if (user_maxripperinterval < 4) { A_SetUserVar("user_maxripperinterval",4); }
A_SetUserVar("user_halfmaxripperinterval",user_maxripperinterval/2);
Thing_ChangeTID(0,5001);
}
Expand Down Expand Up @@ -14558,6 +14567,9 @@ ACTOR HubbleBubbleLarge : HubbleBubbleSmall
A_ChangeFlag("FORCEPAIN",1);
A_SetUserVar("user_ripperinterval",0);
A_SetUserVar("user_maxripperinterval",random(16,24));
A_SetUserVar("user_maxripperinterval",user_maxripperinterval-(CallACS("StatCheck",6)/16)); // Sorcery
A_SetUserVar("user_maxripperinterval",user_maxripperinterval-(CallACS("StatCheck",8)/32)); // Therapeusis
if (user_maxripperinterval < 4) { A_SetUserVar("user_maxripperinterval",4); }
A_SetUserVar("user_halfmaxripperinterval",user_maxripperinterval/2);
}
A_SetUserVar("user_bubbletimer",user_bubbletimer+1);
Expand Down
25 changes: 14 additions & 11 deletions scripts/SPELLSRC.acs
Expand Up @@ -32521,6 +32521,9 @@ script "MonsterStatsHP_ATK_DEF_SPD" (int type)
int LevelDifficultyInflation = GetCVar("dvds_leveldifficultyinflation");
if (LevelDifficultyInflation < -2000) LevelDifficultyInflation = -2000;
if (LevelDifficultyInflation > 2000) LevelDifficultyInflation = 2000;
int LevelDifficultyInflationPercent = GetCVar("dvds_leveldifficultyinflation2");
if (LevelDifficultyInflationPercent < -100) LevelDifficultyInflationPercent = -100;
if (LevelDifficultyInflationPercent > 2000) LevelDifficultyInflationPercent = 2000;

if (ModType == 0)
{
Expand All @@ -32532,11 +32535,16 @@ script "MonsterStatsHP_ATK_DEF_SPD" (int type)
{
LevelCheck = PlayerLevel;
LevelCheck += GetUserVariable(0,"user_ressurrectstr"); // Checks the "Resurrect" strength of a monster [Clay Devils in TCOTD get stronger each time they resurrect]
if (GetCVar("dvdsdebug_showstatcalcstuff") != 0) PrintBold(s:"\ckMonsterLevel [init]: ",d:(LevelCheck));
LevelCheck += LevelDifficultyInflation;
if (GetCVar("dvdsdebug_showstatcalcstuff") != 0) PrintBold(s:"\ckMonsterLevel [inflation-exact]: ",d:(LevelCheck));
LevelCheck = LevelCheck * (100 + LevelDifficultyInflationPercent) / 100;
if (GetCVar("dvdsdebug_showstatcalcstuff") != 0) PrintBold(s:"\ckMonsterLevel [inflation-percent]: ",d:(LevelCheck));

LevelErrorRange = FixedMul(LevelCheck, 0.1667);
if (LevelErrorRange < 1) LevelErrorRange = random(0,3);
LevelCheck += random(-LevelErrorRange,LevelErrorRange);
if (GetCVar("dvdsdebug_showstatcalcstuff") != 0) PrintBold(s:"\ckMonsterLevel [error-range]: ",d:(LevelCheck));

if (ModType == 1) // DV1 [general]
{
Expand Down Expand Up @@ -32611,7 +32619,9 @@ script "MonsterStatsHP_ATK_DEF_SPD" (int type)
// Oddball Tier Boss
if (CheckActorClass(0, "Magmantis")) LevelCheck += random(52,75);
}

str actorname = GetActorClass(0);
if (GetCVar("dvdsdebug_showstatcalcstuff") != 0) PrintBold(s:"\ckMonsterLevel [actor-check: ",s:actorname,s:"]: ",d:(LevelCheck));

// Check if the actor is one of Strife's Peasents [and if so, cancel out most level additions and divide their level by 4]
int IsAPeasent = 0;
If(CheckActorClass(0,"PeasantNew") == 1) IsAPeasent ++;
Expand Down Expand Up @@ -32675,10 +32685,11 @@ script "MonsterStatsHP_ATK_DEF_SPD" (int type)
}
if (random(1,64) == 1) LevelCheck *= 4;
}
if (GetCVar("dvdsdebug_showstatcalcstuff") != 0) PrintBold(s:"\ckMonsterLevel [peasent-checking]: ",d:(LevelCheck));

if (LevelCheck < 0) LevelCheck = 0;
if (LevelCheck > 2000) LevelCheck = 2000;
if (GetCVar("dvdsdebug_showstatcalcstuff") != 0) PrintBold(s:"\ckMonsterLevel: ",d:(LevelCheck));
if (GetCVar("dvdsdebug_showstatcalcstuff") != 0) PrintBold(s:"\ckMonsterLevel [final calc]: ",d:(LevelCheck));
SetUserVariable(0,"user_monsterlevel",LevelCheck);

AttackFactor = 0.0;
Expand Down Expand Up @@ -43457,14 +43468,6 @@ script "AddEXP" (int baseamount, int flags, int incrementcombo)
baseexp = baseamount;
}

if (CheckActorClass(0,"IceGolem") == 1 || CheckActorClass(0,"IceGolemGhost") == 1)
{
finalexpamount = (finalexpamount * random(3,5)) / 2;
if (random(1,16) == 1) DropItem(0,"RandomSeedDropForcedAlways",1,256);
if (random(1,64) == 1) DropItem(0,"RandomSeedDropForcedAlways",1,256);
if (random(1,256) == 1) DropItem(0,"RandomSeedDropForcedAlways",1,256);
}

if (CheckActorClass(0,"Banshee") == 1 || CheckActorClass(0,"DeathKnight") == 1)
{
finalexpamount = (finalexpamount * random(3,5)) / 2;
Expand All @@ -43479,7 +43482,7 @@ script "AddEXP" (int baseamount, int flags, int incrementcombo)
if (random(1,4) == 1) DropItem(0,"RandomSeedDropForcedAlways",1,256);
if (random(1,16) == 1) DropItem(0,"RandomSeedDropForcedAlways",1,256);
}
if (CheckActorClass(0,"VampireDVDS") == 1)
if (CheckActorClass(0,"IceGolem") == 1 || CheckActorClass(0,"IceGolemGhost") == 1 || CheckActorClass(0,"VampireDVDS") == 1)
{
finalexpamount = (finalexpamount * random(2,4)) / 2;
if (random(1,24) == 1) DropItem(0,"RandomSeedDropForcedAlways",1,256);
Expand Down

0 comments on commit 0f2085a

Please sign in to comment.