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

Misc bugfixes from DDA 6 #316

Merged
merged 12 commits into from
Jan 17, 2021
Merged

Misc bugfixes from DDA 6 #316

merged 12 commits into from
Jan 17, 2021

Conversation

olanti-p
Copy link
Contributor

@olanti-p olanti-p commented Jan 12, 2021

Purpose of change

Digital disinsection

Describe the solution

Cherry-picked from DDA:
CleverRaven#46266
CleverRaven#46345
CleverRaven#46242
CleverRaven#42549
CleverRaven#46407
CleverRaven#40995
CleverRaven#46433
CleverRaven#46465
CleverRaven#46453 (the bug persists if z-levels are disabled)
CleverRaven#46521
CleverRaven#46536

Describe alternatives you've considered

Calling Ghostbusters?

Testing

Didn't test fixes for profession / regen message, but those are trivial.
The rest either have tests from original PRs or were tested manually.
Turret's friendly fire check is really weird: the turret sometimes refused to shoot until I moved 10 tiles away from the line of fire, and sometimes it fired right over my shoulder (through my tile).

item_warmth += 60 * elem.get_warmth() * elem.volume() / 2500_ml;
};

if( !!g->m.veh_at( pos ) ) {
Copy link
Member

Choose a reason for hiding this comment

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

This could probably be skipped.
The items under the vehicle are still reachable anyway.

add_msg( m_good, _( "%s wounds are closing up!" ), cr->disp_name( true ) );
if( g->u.sees( cr->pos() ) ) {
add_msg( m_good, _( "%s wounds are closing up!" ), cr->disp_name( true ) );
}
Copy link
Member

Choose a reason for hiding this comment

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

Not caused here, but it seems that it still prints the message even if there are no wounds to close up.

if( mon->is_player() ) {
who.add_msg_if_player( m_info, _( "There's some buffoon in the way!" ) );
} else if( mon->is_monster() ) {
// TODO: Houseflies, mosquitoes, etc shouldn't count
Copy link
Member

Choose a reason for hiding this comment

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

We won't have those.

@Coolthulhu
Copy link
Member

Turret's friendly fire check is really weird: the turret sometimes refused to shoot until I moved 10 tiles away from the line of fire, and sometimes it fired right over my shoulder (through my tile).

It's allowed to fire through you if you are on an inside-vehicle tile, because it can't hit you there.
Not sure why would it require the 10 tile thing.

@Coolthulhu Coolthulhu merged commit ea6a1c3 into cataclysmbnteam:upload Jan 17, 2021
@olanti-p olanti-p deleted the misc-fixes-6 branch January 17, 2021 18:26
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.

9 participants