Skip to content

Commit

Permalink
Changes for 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
larzm42 committed Jan 22, 2024
1 parent 557371c commit f27ae02
Show file tree
Hide file tree
Showing 6 changed files with 4,521 additions and 4,514 deletions.
1,042 changes: 521 additions & 521 deletions gamedata/BaseI.csv

Large diffs are not rendered by default.

7,950 changes: 3,975 additions & 3,975 deletions gamedata/BaseU.csv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions scripts/DMI/MItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ var displayorder2 = DMI.Utils.cutDisplayOrder(aliases, formats,
'farsail', 'sailing distance increase',
'stormimmune', 'storm immunity',
'lesserhorrorattackchance', 'attack by lesser horrors', Format.Percent,
'falsesupplies', 'false supplies',
'eatforyouth', 'eat for youth', function(v,o){
return '-' + v +' years';
}
Expand Down
6 changes: 3 additions & 3 deletions scripts/DMI/MSpell.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,14 +408,14 @@ MSpell.prepareData_PostMod = function() {
u.summonedby = u.summonedby || [];
u.summonedby.push( o );
// Marverni gets Iron Boar
if (parseInt(o.id) == 672) {
if (parseInt(o.id) == 859) {
var ironBoar = modctx.unitlookup[1808];
o.summonsunits.push(ironBoar);
ironBoar.summonedby = ironBoar.summonedby || [];
ironBoar.summonedby.push( o );
var marv = modctx.nationlookup[8];
var marv = modctx.nationlookup[12];
ironBoar.nations = ironBoar.nations || {};
ironBoar.nations[8] = marv;
ironBoar.nations[12] = marv;
ironBoar.eracodes = ironBoar.eracodes || {};
ironBoar.eracodes[o.eracode] = true;
}
Expand Down
34 changes: 20 additions & 14 deletions scripts/DMI/MUnit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1109,31 +1109,30 @@ MUnit.prepareForRender = function(o) {
var n;
var isldr = is(o.leader);
if (n= parseInt(o.A)) {
if (isldr) bonus('air magic', 'magicleader', n*5);
if (isldr) bonus('air magic', 'magicleader', n*10);
if (_isCmdr) bonus('air magic', 'shockres', n > 2 ? n*2-1:0);
}
if (n= parseInt(o.B)) {
if (isldr) bonus('blood magic', 'magicleader', n*5);
if (isldr) bonus('blood magic', 'undeadleader', n*5);
if (isldr) bonus('blood magic', 'magicleader', n*10);
if (isldr) bonus('blood magic', 'undeadleader', n*10);
}
if (n= parseInt(o.D)) {
//if (isldr) bonus('death magic', 'magicleader', n*5);
if (isldr) bonus('death magic', 'undeadleader', n*30);
if (isldr) bonus('death magic', 'undeadleader', n*50);
if (o.fear)
bonus('death magic', 'fear', n);
else if (n >= 5)
bonus('death magic', 'fear', n-5);
}
if (n= parseInt(o.S)) {
if (isldr) bonus('astral magic', 'magicleader', n*10);
if (isldr) bonus('astral magic', 'magicleader', n*20);
}
if (n= parseInt(o.E)) {
if (isldr) bonus('earth magic', 'magicleader', n*5);
if (isldr) bonus('earth magic', 'magicleader', n*10);
if (n > 2) bonus('earth magic', 'prot', n);
}
if (n= parseInt(o.F)) {
if (isldr) bonus('fire magic', 'leader', n*5);
if (isldr) bonus('fire magic', 'magicleader', n*5);
if (isldr) bonus('fire magic', 'leader', n*10);
if (isldr) bonus('fire magic', 'magicleader', n*10);
if (_isCmdr) bonus('fire magic', 'fireres', n > 2 ? n*2-1:0);

if (is(o.fireshield))
Expand All @@ -1142,16 +1141,19 @@ MUnit.prepareForRender = function(o) {
bonus('fire magic', 'heat', n);
}
if (n= parseInt(o.N)) {
if (isldr) bonus('nature magic', 'magicleader', n*5);
if (isldr) bonus('nature magic', 'magicleader', n*10);
bonus('nature magic', 'supplybonus', n*10);
if (_isCmdr) bonus('nature magic', 'poisonres', n > 2 ? n*2-1:0);
}
if (n= parseInt(o.W)) {
if (isldr) bonus('water magic', 'magicleader', n*5);
if (isldr) bonus('water magic', 'magicleader', n*10);
if (is(o.cold))
bonus('water magic', 'cold', n);
if (_isCmdr) bonus('water magic', 'coldres', n > 2 ? n*2-1:0);
}
if (n= parseInt(o.G)) {
if (isldr) bonus('glamour magic', 'magicleader', n*10);
}

if (o.command) {
if (isldr) bonus('command', 'leader', parseInt(o.command));
Expand Down Expand Up @@ -1182,7 +1184,7 @@ MUnit.prepareForRender = function(o) {
t = String(n) + ' '+ slotorder[j+1];
if (t == 'foot')
t = 'feet';
if (j==2 && o.crownonly) {
if (j==4 && o.crownonly) {
t=t+'(crown only)';
}
slotwords.push(t);
Expand Down Expand Up @@ -1754,6 +1756,7 @@ var displayorder_other = Utils.cutDisplayOrder(aliases, formats,
'coldres', 'resist cold',
'poisonres', 'resist poison',
'shockres', 'resist shock',
'acidres', 'resist acid',
'diseaseres', 'resist disease', Format.Percent,

'darkvision', 'dark vision', Format.Percent,
Expand Down Expand Up @@ -1799,7 +1802,7 @@ var displayorder_other = Utils.cutDisplayOrder(aliases, formats,
'animalawe', 'animal awe', Format.SignedZero,
'event', 'causes events', Format.Percent,
'reform', 'chance to reform when killed', Format.Percent,

'smartmount', 'smart mount',
'reanimator', 'passive corpse reanimation',
'preanimator', 'priest reanimation',
'dreanimator', 'death reanimation',
Expand Down Expand Up @@ -2061,6 +2064,7 @@ var displayorder_other = Utils.cutDisplayOrder(aliases, formats,
'deathattuned', 'bonus death magic', Format.Percent,
'natureattuned', 'bonus nature magic', Format.Percent,
'bloodattuned', 'bonus blood magic', Format.Percent,
'reformingflesh', 'reforming flesh', Format.Percent,

'events', 'triggered events', list_events,
'recruitedby', 'recruited from', list_sites,
Expand Down Expand Up @@ -2199,7 +2203,7 @@ var flagorder = Utils.cutDisplayOrder(aliases, formats,
'defiler', 'defiler',
'mountedbeserk', 'mounted beserk',
'lanceok', 'lance ok',

'truesight', 'true sight',
'trample', 'trample',
'trampswallow', 'swallow',
'spy', 'spy',
Expand All @@ -2209,6 +2213,8 @@ var flagorder = Utils.cutDisplayOrder(aliases, formats,
'taxcollector', 'tax collector',
'gold', 'gold',
'divineins', 'divinely inspired',
'mobilearcher', 'mobile archer',
'fearoftheflood', 'fear of the flood',

'coldblood', 'cold blooded',
'amphibian', 'amphibious',
Expand Down
2 changes: 1 addition & 1 deletion scripts/DMI/SpellTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function show_summon(unit, count, pathlevel1, spellid) {
}
// Marverni gets Iron Boars
if (parseInt(unit) == 924) {
ref = ref + '<br/>(' + Utils.unitRef(1808) + ' x ' + String(spellBonus(count, pathlevel1)) + ' for ' + Utils.nationRef(8) + ')';
ref = ref + '<br/>(' + Utils.unitRef(1808) + ' x ' + String(spellBonus(count, pathlevel1)) + ' for ' + Utils.nationRef(12) + ')';
}
return ref;
}
Expand Down

0 comments on commit f27ae02

Please sign in to comment.