updare RE:R2 event
This commit is contained in:
parent
73bc6a5d89
commit
36ec9979a8
@ -32,7 +32,7 @@
|
||||
<div class="card mb-3">
|
||||
<div class="card-header">
|
||||
<div class="d-flex justify-content-between placeholder-glow">
|
||||
<span class="fw-bold">Invasion of the Huge Creatures No. 101</span>
|
||||
<span class="fw-bold">Invasion of the Huge Creatures No. 104</span>
|
||||
<span id="rev2_time_remaining" class="placeholder col-1 rounded"></span>
|
||||
</div>
|
||||
</div>
|
||||
@ -61,7 +61,7 @@
|
||||
Данные обновляются каждый час |
|
||||
<a
|
||||
class="text-reset"
|
||||
href="https://game.capcom.com/residentevil/en/onlineevent-4_1108.html#windows"
|
||||
href="https://game.capcom.com/residentevil/en/onlineevent-4_1141.html#windows"
|
||||
target="_blank"
|
||||
>Ссылка на страницу эвента</a
|
||||
>
|
||||
|
@ -17,7 +17,7 @@ options "/api/v1.0/rev2_monsters" do |env|
|
||||
end
|
||||
|
||||
get "/api/v1.0/rev2_monsters" do |env|
|
||||
url = "https://game.capcom.com/residentevil/en/onlineevent-4_1108.html"
|
||||
url = "https://game.capcom.com/residentevil/en/onlineevent-4_1141.html"
|
||||
|
||||
cache_time = File.read("./cache/rev2/time.txt").to_i
|
||||
|
||||
@ -42,6 +42,9 @@ get "/api/v1.0/rev2_monsters" do |env|
|
||||
end
|
||||
end
|
||||
|
||||
puts "aaa"
|
||||
puts time_remaining
|
||||
|
||||
enemies.each_with_index do |ememy, i|
|
||||
hp = /\d+%/.match(ememy)
|
||||
enemies[i] = enemies[i].gsub(/\d+%/, " \\0")
|
||||
|
Loading…
Reference in New Issue
Block a user