Skip to content

[FEAT]: Add food improvement for purchases #10

@coxmars

Description

@coxmars

Issue

Adapt Food Model to Allow Purchases with Virtual Currencies

Description

We need to modify the food model to support purchases using virtual currencies (coins and stones) instead of or in addition to other payment methods. This will integrate the food system with the game's virtual economy and allow players to buy food using their in-game currency balances.

Explanation

The current food model likely doesn't support virtual currency transactions. This adaptation will enable players to purchase food items using their coins and stones, creating a complete in-game economy loop.

Technical Spike Goals:

  • Add virtual currency pricing fields to food model (coins_price)
  • Implement purchase validation methods to check player currency balances
  • Create currency deduction logic for successful food purchases
  • Add support for different payment methods (coins)
  • Create comprehensive tests for virtual currency food purchase scenarios

Notes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions