mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-10 14:26:01 +00:00
prevent_spawn_treasure in daily
This commit is contained in:
1
hyper.h
1
hyper.h
@@ -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 {
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user