the tiniest microoptimization
This commit is contained in:
parent
85032de947
commit
ba18d2f0d9
|
@ -12,7 +12,7 @@
|
|||
<img src="/favicon.png" width="64" height="auto" class="spinny"> crystal-gauntlet
|
||||
</h1>
|
||||
<div style="max-width: 400px; font-style: italic; text-align: center" class="dim"><%=
|
||||
strings = [
|
||||
strings = StaticArray[
|
||||
"did yoy know? 50 Kilometers Remaining",
|
||||
"Fun Basil Fact: If you start running now, you may be fast enough",
|
||||
"Made in Yugoslavia",
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
<%- levels.each do |id, name, username, difficulty_community, difficulty_set, featured, epic| -%>
|
||||
<div class="level">
|
||||
<%=
|
||||
difficulties = [
|
||||
difficulties = StaticArray[
|
||||
"auto",
|
||||
"easy",
|
||||
"normal",
|
||||
|
|
|
@ -17,7 +17,7 @@ private def get_rand(type : String, large = false)
|
|||
((Random.rand(min.to_f .. (max.to_f + 1)) / increment).floor() * increment).to_i
|
||||
end
|
||||
|
||||
private REWARD_TYPES = ["orbs", "diamonds", "shards", "keys"]
|
||||
private REWARD_TYPES = StaticArray["orbs", "diamonds", "shards", "keys"]
|
||||
|
||||
private def get_chest(account_id : Int32, large = false) : {Int32?, Int32?}
|
||||
begin
|
||||
|
|
Loading…
Reference in New Issue