Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit232ddaa

Browse files
committed
Increase turning odds in init_location()
1 parent4238899 commit232ddaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/pebble_quest.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3761,8 +3761,8 @@ void init_location(void)
37613761
// Ensure a mage will be generated next to the exit:
37623762
init_npc(&g_location->npcs[0],MAGE,builder_position);
37633763

3764-
//25% chance of turning:
3765-
if (rand() %NUM_DIRECTIONS==0)
3764+
//50% chance of turning:
3765+
if (rand() %2)
37663766
{
37673767
builder_direction=rand() %NUM_DIRECTIONS;
37683768
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp