Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Hut Building and game mech (with validation) #91

Open
wants to merge 25 commits into
base: aor25
Choose a base branch
from

Conversation

thatchinkumar2005
Copy link
Contributor

--hut spawn from validator.
--dummy data changes.
--hut upgrade changes.
--hut range logic in backend.
--hut side selection logic in backend.
--hut defender validation.
--hut range mechn validation
--new hut defender spawn action type.
--new hut defender spawn response type.
--socket response changes.
--game state changes.

@MegaaDev
Copy link
Collaborator

MegaaDev commented Jan 13, 2025

Propsed changes:

  • There will be multiple defender_huts, so make that into a vec in state
  • Frequency in prop table is the duration of bot coming out of hut in milliseconds not the limit. Store the limit in constants.rs. It must be an object. For each level change the attributes in prop
  • Replace if else's in spawn_hut_defender with a function in utils.
  • Store last_timestamp field in hut defenders struct. Now check whether the current_time_stamp - last_timestamp >= frequency.
  • Dont send the SpawnHutDefender actiontype from frontend, run the timestamp check in attacker_movement and update the defender socket response.
  • Follow commit convention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants