Skip to content

Commit

Permalink
Removed WoG dependency for random artifacts. WoG version in repositor…
Browse files Browse the repository at this point in the history
…y updated.
  • Loading branch information
DjWarmonger authored and DjWarmonger committed Sep 23, 2015
1 parent e2165a3 commit 971f6d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/CArtHandler.cpp
Expand Up @@ -578,9 +578,11 @@ bool CArtHandler::legalArtifact(ArtifactID id)
auto art = artifacts[id];
//assert ( (!art->constituents) || art->constituents->size() ); //artifacts is not combined or has some components
return (art->possibleSlots[ArtBearer::HERO].size() ||
(art->possibleSlots[ArtBearer::COMMANDER].size() && VLC->modh->modules.COMMANDERS) ||
(art->possibleSlots[ArtBearer::CREATURE].size() && VLC->modh->modules.STACK_ARTIFACT)) &&
!(art->constituents); //no combo artifacts spawning
(art->possibleSlots[ArtBearer::COMMANDER].size() && VLC->modh->modules.COMMANDERS) ||
(art->possibleSlots[ArtBearer::CREATURE].size() && VLC->modh->modules.STACK_ARTIFACT) &&
!(art->constituents) && //no combo artifacts spawning
art->aClass >= CArtifact::ART_TREASURE &&
art->aClass <= CArtifact::ART_RELIC);
}

bool CArtHandler::isTradableArtifact(ArtifactID id) const
Expand Down
1 change: 1 addition & 0 deletions lib/GameConstants.h
Expand Up @@ -823,6 +823,7 @@ class ArtifactID
//BLACKSHARD_OF_THE_DEAD_KNIGHT = 8,
TITANS_THUNDER = 135,
//CORNUCOPIA = 140,
//FIXME: the following is only true if WoG is enabled. Otherwise other mod artifacts will take these slots.
ART_SELECTION = 144,
ART_LOCK = 145,
AXE_OF_SMASHING = 146,
Expand Down

0 comments on commit 971f6d1

Please sign in to comment.