You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/gemwarrior/entities/items/arena_master.rb
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,24 +19,28 @@ def initialize
19
19
self.takeable=false
20
20
self.useable=true
21
21
self.equippable=false
22
+
self.talkable=true
22
23
end
23
24
24
25
defuse(player=nil)
25
26
puts"You approach #{ARENA_MASTER_NAME.colorize(color: :white,background: :black)}, the Arena Master, and ask to prove your mettle in the arena. She snickers to herself, but sees you have a good spirit about you."
26
27
puts
27
28
28
29
ifplayer.rox >= 50
29
-
puts"She asks for the requisite payment: #{ARENA_FEE} rox. Do you pay up? (Y/N)"
30
+
print"She asks for the requisite payment: #{ARENA_FEE} rox. Do you pay up? (y/n) "
30
31
answer=gets.chomp.downcase
32
+
31
33
caseanswer
32
34
when'y','yes'
33
35
player.rox -= 50
36
+
puts
34
37
puts'She pockets the money and motions toward the center of the arena. She reminds you that you will be facing an ever-worsening onslaught of monsters. Each one you dispatch nets you a bonus cache of rox in addition to whatever the monster gives you. You will also become more experienced the longer you last. Finally, you can give up at any time between battles.'
35
38
puts
36
39
puts'She finishes by wishing you good luck!'
37
40
38
41
return{type: 'arena',data: nil}
39
42
else
43
+
puts
40
44
puts'She gives you a dirty look, as you have obviously wasted her time. You are told not to mess around with her anymore, and she turns away from you.'
0 commit comments