prevent_spawn_treasure in daily

This commit is contained in:
Zeno Rogue 2018-05-20 15:16:21 +02:00
parent e2c0a86468
commit 9286134502
2 changed files with 4 additions and 0 deletions

View File

@ -3289,6 +3289,7 @@ namespace daily {
void turnoff();
void showMenu();
int find_daily_lbid(int id);
bool prevent_spawn_treasure_on(cell *c);
}
enum eOrbLandRelation {

View File

@ -281,6 +281,9 @@ bool haveKraken() {
eItem wanderingTreasure(cell *c) {
eLand l = c->land;
#if CAP_DAILY
if(daily::on && daily::prevent_spawn_treasure_on(c)) return itNone;
#endif
if(l == laEFire) return itFireShard;
if(l == laEWater) return itWaterShard;
if(l == laEAir) return itAirShard;