the tiniest microoptimization

This commit is contained in:
Jill 2023-01-05 19:07:44 +03:00
parent 85032de947
commit ba18d2f0d9
3 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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