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

add ships and ship building #62

Closed
wants to merge 8 commits into from
Closed

add ships and ship building #62

wants to merge 8 commits into from

Conversation

Sjazfrey
Copy link
Collaborator

#44

@netlify
Copy link

netlify bot commented Oct 10, 2022

Deploy Preview for tangerine-frangipane-73560e ready!

Name Link
🔨 Latest commit 899e1c9
🔍 Latest deploy log https://app.netlify.com/sites/tangerine-frangipane-73560e/deploys/63673417df781d0007b1a645
😎 Deploy Preview https://deploy-preview-62--tangerine-frangipane-73560e.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.


export const buildShip = (system:System) => {
console.log('help')
setTimeout(function(){system.hangar.push(ship1); console.log(system.hangar)}, ship1.buildTime*1000)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Shirley, I'm not seeing the ship added to the system's array when I click this button. It's throwing this error generate-sector.ts:32 Uncaught TypeError: Cannot add property 0, object is not extensible

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P.S the UI will update if there's something in the hangar. Or at least it SHOULD, we haven't tested that yet

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look into Object.freeze and checking to find out when the array/object in question is frozen or not. It might have something to do with set time out having some sort of side effect on the object frozen status.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DylanBozarth @Sjazfrey Do we know if this is ready to merge?

@DylanBozarth DylanBozarth linked an issue Oct 12, 2022 that may be closed by this pull request
@Sjazfrey Sjazfrey requested a review from DylanBozarth October 17, 2022 22:47
@DylanBozarth DylanBozarth added this to the GET TO THAT MVP BABY! milestone Oct 31, 2022
@DylanBozarth DylanBozarth deleted the build-ship branch February 19, 2023 21:28
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.

Add ships and ship building
3 participants