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

Fix protect calculations #324

Merged
merged 3 commits into from
Apr 11, 2024
Merged

Fix protect calculations #324

merged 3 commits into from
Apr 11, 2024

Conversation

kyvg
Copy link
Collaborator

@kyvg kyvg commented Mar 2, 2024

No description provided.

@@ -82,7 +81,7 @@ class Protect extends AffectableAction implements PreAffect {
}

const protect = Math.floor(flag.val * 100) / pdef;
const exp = Math.round(expMultiplier * 0.8 * protect);
const exp = Math.round(expMultiplier * 0.08 * protect);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Вроде договаривались про 0.4, или много получилось ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

С 0.08 получается 40, 0.4 будет 200 соответственно для игрока первого уровня

Copy link
Collaborator

Choose a reason for hiding this comment

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

Но у игрока первого уровня нет стены :)


const randomValue = MiscService.rndm('1d100');
const chance = 20 * ratio + 50;
const chance = Math.round(Math.sqrt(ratio) + (10 * ratio) + 5);
Copy link
Collaborator

Choose a reason for hiding this comment

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

При соотношение 1:1 мы получим 16% пробития :/
При 2:1 = 29

Один фиг формула выглядит кривой :)

@catHD
Copy link
Collaborator

catHD commented Mar 17, 2024

Оставляем эту формулу?

@kyvg
Copy link
Collaborator Author

kyvg commented Apr 8, 2024

Не, заменю на формулу из таблицы

@kyvg
Copy link
Collaborator Author

kyvg commented Apr 9, 2024

@catHD Сделал стену проектом. Разделил стену на два класса как в lightShield

Copy link
Collaborator

@catHD catHD left a comment

Choose a reason for hiding this comment

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

👍

@kyvg kyvg merged commit ff357c2 into master Apr 11, 2024
3 checks passed
@kyvg kyvg deleted the fix-protect-calculations branch April 11, 2024 09:16
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