mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-25 18:44:37 +00:00
696e727a39
## Description: Adds a currency pack system to the store. Players can purchase packs of in-game currency (Plutonium and Caps) via Stripe checkout. What's new: * Pack schema (PackSchema) — new cosmetic type with currency (hard/soft), amount, and displayName * "Packs" tab in the Store — renders purchasable currency packs using existing CosmeticButton infrastructure * Stripe checkout flow — new createCurrencyPackCheckout API call and handlePackPurchase handler * Currency display in Account modal — shows Plutonium and Caps balances when logged in I* con components — <plutonium-icon> (animated green glow + rotate) and <cap-icon> with new SVG assets * Currency in UserMeResponse — player.currency.hard / player.currency.soft added to the API schema ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: evan
5 lines
6.4 KiB
XML
5 lines
6.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<svg width="1200pt" height="1200pt" version="1.1" viewBox="0 0 1200 1200" xmlns="http://www.w3.org/2000/svg">
|
|
<path fill="#22c55e" d="m525.94 599.76c0-40.828 33.281-74.062 74.062-74.062 40.828 0 74.062 33.281 74.062 74.062 0 40.828-33.281 74.062-74.062 74.062-40.828 0-74.062-33.281-74.062-74.062zm-5.0625 169.82c15.609-6.5625 32.766-13.594 51.891-22.688-15.609-7.5469-30.234-15.609-44.344-23.672-14.109-8.5781-28.219-17.156-41.812-25.688 1.5 19.172 3.0469 37.781 5.5312 55.453 1.0312 9.5625 2.0156 18.141 3.5156 27.234 6.5625-2.5312 13.125-5.0625 19.641-8.0625 2.0625-0.5625 3.5625-1.5938 5.5781-2.5781zm415.78-169.36c75.094 84.141 106.31 161.76 87.703 219.71l-0.51562 0.51562c0 0.51562-0.51562 1.5-0.98438 2.5312 0 0.51562 0 1.0312-0.51562 1.0312-1.5 5.0156-3.5156 11.062-7.0781 16.125-23.672 41.344-75.609 63-147.66 63-29.719 0-62.484-3.5156-98.25-11.109-34.781 103.31-86.672 169.82-144.61 183.94-1.0312 0.51562-2.0156 0.98438-3.0469 0.98438-1.0312 0.51562-1.5 0.51562-2.5312 0.51562-5.0625 2.0156-11.109 2.5312-19.172 2.5312-68.016 0-129-68.531-168.32-188.95-36.281 8.5781-69.562 12.094-99.797 12.094-71.578 0-123.47-21.656-147.66-63-33.75-58.969-5.5312-146.16 78.609-239.86-83.672-94.734-111.89-181.92-78.609-240.37 3.0469-5.5312 7.0781-10.594 12.094-16.125 0.51562-0.51562 1.0312-1.5 1.5-2.0156 0.51562-0.51563 0.98438-1.0312 1.5-1.0312 40.828-43.359 124.97-55.453 232.31-32.25 39.375-119.95 100.36-188.48 168.37-188.48 5.0156 0 12.094 0.51563 19.641 2.5312 1.5 0 3.0469 0.51563 4.5469 0.98438 56.953 13.125 109.88 80.109 144.61 184.92 106.31-23.156 190.5-11.578 231.79 32.25 0.98438 0 1.5 1.0312 2.0156 1.5 0.51562 0.51563 1.0312 0.98438 1.0312 1.5 5.0156 4.5469 9.0938 10.594 12.094 16.125 33.797 58.5 5.5781 145.69-79.078 240.42zm-521.58 233.86c-1.0312-4.0312-2.0156-8.5781-3.0469-13.125-1.0312-4.0312-2.0156-8.0625-2.5312-11.578-6.5625-30.75-11.578-60.469-14.625-90.703-43.828-32.25-82.125-65.531-114.89-99.797-64.5 72.562-93.234 140.58-81.656 188.48 2.0156 7.0781 4.5469 13.594 8.0625 19.641 4.5469 8.0625 10.594 15.141 18.141 21.656 16.125 4.5469 35.297 7.0781 56.953 7.0781 37.828 0 82.688-7.0781 133.6-21.656zm9.0469-501.42c-95.25-20.156-170.81-10.594-205.6 24.703-1.0312 0.51562-1.5 1.5-2.0156 2.0156-4.5469 4.5469-8.0625 8.5781-10.078 12.609-5.0625 8.0625-8.0625 17.625-9.5625 27.703 12.094 47.344 51.891 104.81 116.39 165.79l0.51563 0.51562c21.188 20.156 45.844 41.344 75.609 63.984-0.51562-2.0156-0.51562-4.5469-0.51562-6.5625-0.51563-7.0312-0.51563-15.141-0.51563-23.672v-2.5312c0-28.219 1.0312-55.922 3.5156-82.125-17.625 13.594-34.781 27.703-50.906 41.812-3.5156-3.0469-7.0781-6.0469-10.078-9.0938-2.5312-2.5312-5.5312-5.0156-8.0625-8.0625 22.172-20.672 46.875-39.797 72.047-58.969 6.0938-54.422 15.656-104.3 29.25-148.13zm327.56 5.0156c-38.297 9.0938-78.609 22.172-119.95 39.328 23.672 11.062 47.859 24.188 74.578 39.328 23.672 13.594 46.875 28.734 71.062 44.859-5.5312-44.906-14.109-86.203-25.688-123.52zm-7.0312 548.29c-46.359-10.078-94.734-26.719-144.61-48.891-28.734 12.609-57.469 23.672-86.672 33.281-2.0156-8.0625-4.0312-16.125-6.0469-24.703-2.5312-13.125-5.5312-26.203-7.5469-40.312 8.5781-3.0469 17.109-6.5625 25.219-10.078 0.98437-0.51562 1.5-0.51562 2.5312-1.0312 23.203-9.5625 47.859-20.672 78.609-36.281 0.51563 0 0.51563-0.51562 1.0312-0.51562 21.656-11.109 43.828-22.172 64.5-34.266 46.875-27.703 91.219-57.469 131.53-87.703 0.51563 0 0.51563-0.51562 1.0312-0.51562h0.51563c0.51562-0.51562 1.0312-0.51562 1.5-1.0312 0.51562-0.51562 1.0312-0.51562 1.0312-1.0312 0.51562-0.51562 1.0312-0.98438 1.5-0.98438 29.203-23.203 55.453-44.859 77.109-66l0.51563-0.51562c63.516-59.484 103.83-116.91 116.91-164.29-1.5-10.594-4.5469-20.672-9.5625-29.25-2.0156-4.0312-5.5312-8.0625-9.5625-12.094-0.51563-1.0312-1.5-1.5-2.5312-2.0156-34.781-36.281-110.86-45.375-205.13-25.688 14.109 44.859 23.672 94.734 29.25 149.16v0.51562c25.688 18.656 49.406 37.781 71.062 57.938-2.5312 3.0469-5.5312 5.5312-8.0625 8.0625-3.0469 3.0469-6.5625 6.0469-10.078 9.0938-15.609-14.109-31.734-27.703-49.406-40.828 0 5.0156 0.51562 10.078 0.51562 15.141 1.0312 14.109 1.5 29.719 1.5 46.359v5.0156c0.51562 5.0625 0.98438 9.5625 0.98438 14.625l-0.51562 0.51562c-6.5625 5.0156-13.125 10.078-20.156 15.609-0.51562 0.51562-1.0312 0.51562-1.0312 0.98438-1.5 1.0312-2.5312 2.0156-4.0312 3.0469h-0.51562c0.51562-6.0469 0.51562-12.094 0.51562-17.625v-12.609c0.51562-4.0312 0-8.0625-0.51562-12.609 0.51562-8.0625 0-16.125-0.51562-24.188 0-5.0625 0-10.594-0.51562-15.609-0.51562-9.5625-1.0312-18.656-2.0156-28.219v-1.0312c-0.51562-3.5156-0.51562-7.0781-1.5-10.078-29.719-21.656-58.969-40.312-87.703-56.953-33.75-19.172-63.984-34.781-93.234-48.375-30.234 13.078-61.5 29.719-93.75 48.375l-6.5625 3.5156c-2.5312 1.5-5.0625 3.0469-8.0625 5.0156 1.0312-11.062 2.5312-21.656 4.0312-31.734 24.703-14.109 48.891-27.234 72.562-38.812-21.656-8.5781-42.328-16.125-61.5-21.656 2.0156-8.5781 4.0312-16.641 6.0469-24.703 26.719 8.0625 56.438 19.172 87.188 32.766 49.406-22.172 97.781-38.812 144.14-48.891-31.734-93.234-76.594-152.68-124.45-165.79-0.98437-0.51562-2.5312-0.51562-3.5156-0.98438-5.5312-1.5-10.078-2.0156-16.641-2.0156-10.078 0-19.641 2.0156-29.25 6.0469-67.547 67.547-112.88 240.37-112.88 448.5 0 24.703 0.51563 48.891 2.0156 72.562 0 1.0312 0 2.0156 0.51562 3.0469 1.5 29.25 4.0312 57.469 7.5469 84.656 0 0.51562 0 1.5 0.51562 2.0156 0.98438 12.094 3.0469 24.188 5.0156 35.297 0 1.5 0 3 0.51562 4.5469l0.51563 0.51562c3.0469 20.672 7.0312 40.828 11.578 59.484 0.51563 2.0156 1.0312 4.0312 1.5 6.0469 0.51563 0.51562 0.51563 1.0312 0.51563 1.0312 19.641 82.125 49.406 145.64 84.141 180.42 9.0938 3.5156 18.141 5.5312 27.703 5.5312 6.5625 0 11.062-0.51562 15.141-2.0156 1.5-0.51562 2.5312-0.51562 4.0312-1.0312 48.844-13.078 94.219-72.516 125.48-165.74zm174.84-267.1c-31.734 34.266-70.031 67.547-113.91 99.281-3.0469 30.75-7.5469 61.5-14.625 91.734-3.5156-0.98438-7.0781-2.0156-11.062-3.0469-4.0312-0.98438-8.0625-2.5312-12.609-4.0312 4.0312-21.188 8.0625-42.844 10.594-64.5-23.672 16.125-46.359 30.234-69.047 43.828-0.98438 0.51562-1.5 1.0312-2.5312 1.5l-4.0312 2.0156c-6.0469 3.5156-12.094 7.0781-18.141 9.5625-1.5 1.0312-2.5312 1.5-4.0312 2.5312 33.75 14.109 64.5 25.219 92.719 33.281h0.51563c0.98437 0.51562 2.0156 0.51562 3.0469 0.51562 55.922 17.156 103.31 24.703 143.63 24.703 20.156 0 37.781-2.0156 53.438-6.0469 8.5781-6.5625 15.141-14.625 20.156-23.156 3-4.5469 5.0156-9.0938 6.5625-14.109 0.51562-1.5 0.98438-3.0469 0.98438-4.5469 12.562-48.422-17.156-116.44-81.656-189.52z"/>
|
|
</svg>
|