Created
April 29, 2026 13:26
-
-
Save mattantonelli/127640a7fa00f8cc5e85657cd434fd9c to your computer and use it in GitHub Desktop.
FFXIV Collect collection popularity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # All | |
| counts = %w(achievements_count mounts_count minions_count orchestrions_count emotes_count bardings_count hairstyles_count armoires_count spells_count relics_count fashions_count records_count survey_records_count frames_count cards_count npcs_count leves_count facewear_count outfits_count occult_records_count) | |
| total = Character.where('minions_count > 0').count.to_f | |
| counts.each do |count| | |
| name = count.split('_').first.capitalize | |
| usage = Character.where("#{count} > 0").count | |
| percentage = (usage / total) * 100.0 | |
| puts "#{name}: #{usage} (%.2f%%)" % percentage | |
| end | |
| # Manual Only | |
| counts = %w(orchestrions_count emotes_count bardings_count hairstyles_count armoires_count spells_count fashions_count records_count survey_records_count frames_count cards_count npcs_count leves_count outfits_count occult_records_count) | |
| total = Character.where('spells_count > 0').count.to_f | |
| counts.each do |count| | |
| name = count.split('_').first.capitalize | |
| usage = Character.where("#{count} > 0").count | |
| percentage = (usage / total) * 100.0 | |
| puts "#{name}: #{usage} (%.2f%%)" % percentage | |
| end |
Author
mattantonelli
commented
Apr 29, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment