Skip to content

Rod bromberg - #1

Open
RodBromberg wants to merge 4 commits into
masterfrom
rod-bromberg
Open

RodBromberg wants to merge 4 commits into
masterfrom
rod-bromberg

Conversation

@RodBromberg

Copy link
Copy Markdown
Owner

@ielvisd ielvisd left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I made two comments that should have you on your way towards fixing this file for MVP. It's also missing the this assignment.

Comment thread assignments/prototypes.js Outdated


function Humanoid(attributes) {
CharacterStats.call(this, object)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I got object is undefined when I ran your code. I fixed it by passing attributes instead.

Comment thread assignments/prototypes.js Outdated
CharacterStats.call(this, object)
this.team = attributes.team;
this.weapons = attributes.weapons;
this.language = language;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

then language will be undefined so change it to attributes.language

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