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

Increased weight of zombie hulk #78165

Merged
merged 13 commits into from
Dec 1, 2024
Merged

Conversation

Night-Pryanik
Copy link

@Night-Pryanik Night-Pryanik commented Nov 26, 2024

Summary

Bugfixes "Increased weight of zombie hulk"

Purpose of change

Describe the solution

Increased weight of zombie hulk from 200 to 1000 kilograms.

Describe alternatives you've considered

None.

Testing

Debug-spawned zombie hulk, killed it, checked its corpse's weight.

Additional context

None.

@Night-Pryanik Night-Pryanik added [JSON] Changes (can be) made in JSON Monsters Monsters both friendly and unfriendly. <Bugfix> This is a fix for a bug (or closes open issue) labels Nov 26, 2024
@github-actions github-actions bot added json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Nov 26, 2024
@github-actions github-actions bot added Code: Tests Measurement, self-control, statistics, balancing. [C++] Changes (can be) made in C++. Previously named `Code` labels Nov 27, 2024
@SirPendrak
Copy link
Contributor

Mass of 200kg seems very low.

@Maleclypse
Copy link
Member

I'm not seeing the message logs for the errors but I'm wondering if Hulk weight is an important part of the failing tests?

(~[slow] ~[.],starting_items)=> 
(~[slow] ~[.],starting_items)=> -------------------------------------------------------------------------------
(~[slow] ~[.],starting_items)=> Martial_art_technique_conditionals
(~[slow] ~[.],starting_items)=>   Test sweep
(~[slow] ~[.],starting_items)=> -------------------------------------------------------------------------------
(~[slow] ~[.],starting_items)=> ../tests/martial_art_test.cpp:163
(~[slow] ~[.],starting_items)=> ...............................................................................
(~[slow] ~[.],starting_items)=> 
(~[slow] ~[.],starting_items)=> ../tests/martial_art_test.cpp:180: FAILED:
(~[slow] ~[.],starting_items)=>   CHECK( !dude.evaluate_technique( tec, target_2, dude.used_weapon(), false, false, false ).has_value() )
(~[slow] ~[.],starting_items)=> with expansion:
Error: (~[slow] ~[.],starting_items)=>   false
(~[slow] ~[.],starting_items)=> 
(~[slow] ~[.],starting_items)=> -------------------------------------------------------------------------------
(~[slow] ~[.],starting_items)=> Martial_art_technique_conditionals
(~[slow] ~[.],starting_items)=>   Test knockback
(~[slow] ~[.],starting_items)=> -------------------------------------------------------------------------------
(~[slow] ~[.],starting_items)=> ../tests/martial_art_test.cpp:216
(~[slow] ~[.],starting_items)=> ...............................................................................
(~[slow] ~[.],starting_items)=> 
(~[slow] ~[.],starting_items)=> ../tests/martial_art_test.cpp:235: FAILED:
(~[slow] ~[.],starting_items)=>   CHECK( !dude.evaluate_technique( tec, target_2, dude.used_weapon(), false, false, false ).has_value() )
(~[slow] ~[.],starting_items)=> with expansion:
Error: (~[slow] ~[.],starting_items)=>   false
(~[slow] ~[.],starting_items)=> 
(~[slow] ~[.],starting_items)=> Log messages during failed test:

@Night-Pryanik
Copy link
Author

Night-Pryanik commented Nov 30, 2024

I'm not sure why are we checking for failing a sweep and knockback techniques versus big zombies. I see two solutions here:

  • require success instead of fail;
  • find some other big zombie (with wrong json-defined size to pass the test?).

@Maleclypse
Copy link
Member

I'm not sure why are we checking for failing a sweep and knockback techniques versus big zombies. I see two solutions here:

* require success instead of fail;

* find some other big zombie (with wrong json-defined size to pass the test?).

If I understand correctly we are checking to make sure that big monsters can't be swept or thrown. Could the size be made equal or greater to 5?

@Night-Pryanik
Copy link
Author

Could the size be made equal or greater to 5?

Tests failing not because of wrong size. It's because game says that it's possible to sweep or throw a big monster, but tests require it shouldn't be possible. Contradiction.

@github-actions github-actions bot added astyled astyled PR, label is assigned by github actions and removed astyled astyled PR, label is assigned by github actions labels Nov 30, 2024
@RenechCDDA
Copy link
Member

This changes the hulk's size from HUGE to LARGE. Maybe we could just say sixteen men instead?

I don't see a lot of value in changing around the game balance and test coverage because a description wasn't 100% accurate.

@esotericist
Copy link
Contributor

the hulk's size should not be changing here. increase the weight to fix the density, change the description if the inconsistency really bothers you, but it should be kept at the original size.

Tests failing not because of wrong size. It's because game says that it's possible to sweep or throw a big monster, but tests require it shouldn't be possible. Contradiction.

there wasn't a contradiction until you adjusted the size then adjusted the tests that were there to make sure the size was expected.

this sort of thing is exactly why the tests are there, so that someone doesn't go changing parameters in a way that change game balance casually. just hammering the tests to be quiet without stopping to ask "should i be changing the game balance on this?" is not the way to go about things.

@github-actions github-actions bot removed the astyled astyled PR, label is assigned by github actions label Nov 30, 2024
@Night-Pryanik Night-Pryanik changed the title Lowered volume of zombie hulk Increased weight of zombie hulk Nov 30, 2024
Anton Burmistrov and others added 2 commits November 30, 2024 16:33
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions github-actions bot added the astyled astyled PR, label is assigned by github actions label Nov 30, 2024
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Nov 30, 2024
@kevingranade kevingranade marked this pull request as draft December 1, 2024 03:01
@kevingranade kevingranade marked this pull request as ready for review December 1, 2024 03:02
@github-actions github-actions bot removed the json-styled JSON lint passed, label assigned by github actions label Dec 1, 2024
@Maleclypse
Copy link
Member

Testing closing to kick the delayed test

@Maleclypse Maleclypse closed this Dec 1, 2024
@Maleclypse Maleclypse reopened this Dec 1, 2024
@github-actions github-actions bot added the json-styled JSON lint passed, label assigned by github actions label Dec 1, 2024
@kevingranade kevingranade merged commit de4743c into CleverRaven:master Dec 1, 2024
34 of 47 checks passed
@Night-Pryanik Night-Pryanik deleted the hulks branch December 1, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Code: Tests Measurement, self-control, statistics, balancing. [JSON] Changes (can be) made in JSON json-styled JSON lint passed, label assigned by github actions Monsters Monsters both friendly and unfriendly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Big zombies' corpses have unrealistically low density
6 participants