Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/optimizer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/optimizer.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion app/optimizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,20 @@ export class OptimizationEngine {
for(var ih = curHeadIndex; ih < Context.Armory.Head.length; ih++) {
if(Context.Armory.Head[ih].Enabled == false)
continue;
if(Context.Armory.Head[ih].Weight > Context.Armory.AvailableWeight)
continue;

for(var ic = 0; ic < Context.Armory.Chest.length; ic++) {
if(Context.Armory.Chest[ic].Enabled == false)
continue;
if(Context.Armory.Head[ih].Weight + Context.Armory.Chest[ic].Weight > Context.Armory.AvailableWeight)
continue;

for(var ia = 0; ia < Context.Armory.Arms.length; ia++) {
if(Context.Armory.Arms[ia].Enabled == false)
continue;
if(Context.Armory.Head[ih].Weight + Context.Armory.Chest[ic].Weight + Context.Armory.Arms[ia].Weight > Context.Armory.AvailableWeight)
continue;

for(var il = 0; il < Context.Armory.Legs.length; il++) {

Expand Down Expand Up @@ -209,4 +215,4 @@ export interface IOptimizertContext {

InnatePoise: number;

}
}