Changeset - ca3c0c1459c1
[Not reviewed]
default
0 1 0
silverwing - 7 years ago 2017-09-09 09:25:23

tweak: random tweaked
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
london_dice.lua
Show inline comments
 
@@ -81,13 +81,13 @@ dice_game = room {
 
        pr([[Результат броска: ]] .. tostring(pl) .. [[.^]]);
 
        if pl == 1 then
 
            pr [[Ваш соперник теряет ход. ]];
 
            s:player_turn();
 
        else
 
            s.current_pts = s.current_pts + pl;
 
            local r = rnd(20);
 
            local r = rnd(10);
 
            if r == 1 then
 
                s.enemy_pts = s.enemy_pts + s.current_pts;
 
                pr [[Соперник передает вам ход. ]];
 
                s:player_turn();
 
            elseif r == 2 then
 
                pr [[Соперник продолжает игру. ]];
0 comments (0 inline, 0 general)