Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ei toimi ->
- def roll
- if self.x == 1 then
- @x = 1+rand(200)
- end
- if self.x == 2 then
- @x = 200+rand(200)
- end
- @y = 1+rand(120)
- @face = rand(24)
- @value = (@face+1.0) /4
- @value = @value.ceil
- end
- <---
- toimii mutta voi mennä päällekkäin ->
- def roll
- @x = 200+rand(200)
- @y = 1+rand(120)
- @face = rand(24)
- @value = (@face+1.0) /4
- @value = @value.ceil
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement