It would be boring to only have a single snail, so how about we allow users to buy new snails. This can be done using /snailrace buy <snail_type> where the snail_type determines what type of snail you are buying in terms of beginning stats with their respected cost. There will still be a range of randomness and its already built in the models/snail_stats.go file. The following types are:
Starting @ 50g Stats range between 1-5
Amateur @ 100g Stats range between 5-10
Professional @ 150gStats range between 10-15
Expert @ 250g Stats range between 15-20
Note: The RandomSnail type is not supported by the /snailrace buy command as it could cause play issues. The random snail type will be reserved for /snailrace raffle command #11.
The snail that gets bought should be set as the user's active snail. The response to the buy is not ephemeral and will display the snail stats card and a "Congrats for your new snail" kind of message. This will also create a backpack_id for the user and set it for the snail.
[x] Create a new snail with the right type
[x] Send fail message if the user can't afford the snail
It would be boring to only have a single snail, so how about we allow users to buy new snails. This can be done using
/snailrace buy <snail_type>
where thesnail_type
determines what type of snail you are buying in terms of beginning stats with their respected cost. There will still be a range of randomness and its already built in themodels/snail_stats.go
file. The following types are:Starting
@50g
Stats range between1-5
Amateur
@100g
Stats range between5-10
Professional
@150g
Stats range between10-15
Expert
@250g
Stats range between15-20
The snail that gets bought should be set as the user's active snail. The response to the
buy
is not ephemeral and will display the snail stats card and a "Congrats for your new snail" kind of message. This will also create abackpack_id
for the user and set it for the snail.backpack_id