about summary refs log tree commit diff stats
path: root/data/maps/the_great/metadata.txtpb
blob: b01faf7a6020ca48c133caa575f735d64124a267 (plain) (blame)
1
2
3
4
5
6
7
8
display_name: "The Great"
# This can't be shuffled because it is tilted.
excluded_nodes: "Components/Paintings/u"
# This can't be shuffled because it is on the ground.
excluded_nodes: "Components/blare"
# This is the fake HI panel that used to be in the Control Center entrance. It
# is neither visible nor accessible.
excluded_nodes: "Panels/General/entry_4"
"n">isGameplayPaused()) return; timer_.accumulate(dt); while (timer_.step()) { for (int spriteId : game_.getSprites()) { Sprite& sprite = game_.getSprite(spriteId); if (sprite.wander && !sprite.paused) { // 75% chance of changing what's happening if (std::bernoulli_distribution(0.75)(game_.getRng())) { // 50% chance of choosing a direction or stopping if (std::bernoulli_distribution(0.5)(game_.getRng())) { Direction dir; switch (std::uniform_int_distribution(0,3)(game_.getRng())) { case 0: dir = Direction::left; break; case 1: dir = Direction::up; break; case 2: dir = Direction::right; break; default: dir = Direction::down; break; } game_.getSystem<CharacterSystem>().moveInDirection(spriteId, dir); } else { game_.getSystem<CharacterSystem>().stopDirecting(spriteId); } } } } } }