Skip to content

small qol#50

Open
Drakezombie wants to merge 1 commit intobattlecatsultimate:slow_kotlinfrom
Drakezombie:Vivian-QoL-Changes1
Open

small qol#50
Drakezombie wants to merge 1 commit intobattlecatsultimate:slow_kotlinfrom
Drakezombie:Vivian-QoL-Changes1

Conversation

@Drakezombie
Copy link
Copy Markdown

Added ability for zombies to revive above 100% and option to let venom scale with magnifications.

Added ability for zombies to revive above 100% and option to let venom scale with magnifications.
Copy link
Copy Markdown
Contributor

@MandarinSmell MandarinSmell left a comment

Choose a reason for hiding this comment

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

There's problem with your approach of touching max HP of entity. I'm aware why you chose this way, but you should not directly modify max HP. Please consider other approach. Rests of code seems to be fine

Comment thread .idea/.gitignore
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You should not open core code repository with any IDE. This repository is supposed to be submodule of other repository. For example, you just open BCU PC project, git clone this repository, and put it under "[BCU PC Project Folder]/src/main/java/" and rename clone folder to "common". Please remove all of these IDEA project folders and files

Comment thread battle/entity/Entity.java
Comment on lines +968 to +969


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please remove unnecessary linebreaks

Comment thread battle/entity/Entity.java
Comment on lines +1132 to +1149

// set how much health to revive with
long reviveHealth = e.maxH * maxR / 100;

// if revive health exceeds max health, update the max health
if (reviveHealth > e.maxH)
{
e.maxH = reviveHealth;
e.health = e.maxH;
}

// otherwise set health as normal
else
{
e.health = reviveHealth;
}


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I know this idea would be good, but please don't touch maximum HP as it will ruin interaction between healing. Touching maxH means this entity's max HP is changed forever until it dies. This would be interpreted as just dirty patch to solve problem of entity not being able to have extra HP than it can have due to limitation of maxH. You will have to use other approach than this one

Comment thread battle/entity/Entity.java
if (!(ctargetable(atk.trait, atk.attacker, false) || (receive(-1) && atk.SPtr) || (receive(1) && !atk.SPtr)))
return;


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Unnecessary linebreak

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