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

Old explosion rooted out, work in progress #6497

Closed

Conversation

cuberound
Copy link
Contributor

@cuberound cuberound commented Jun 17, 2024

About the pull request

removing old bad code is good, only balance part is mortar shells and exploding magazines and ammo boxes (test the magazines they are changed the most I think and ammo boxes) rest is unused but plase go thrue it as I might have done some mistake. the numbers can be adjusted, especily the mortar

Explain why it's good for the game

Testing Photographs and Procedure

direct incen shell should do less harm then HE shell and old bad code removing is good

Changelog

🆑
balance: HE mortar shell is 240 power with 34 falloff incen 200 power with 33 falloff
fix: all explosions use "new" explosion code directly
/:cl:

@github-actions github-actions bot added the Feature Feature coder badge label Jun 17, 2024
@github-actions github-actions bot added Balance You need to be a professional veteran game maintainer to comprehend what is being done here. Fix Fix one bug, make ten more labels Jun 18, 2024
@cuberound cuberound marked this pull request as ready for review June 18, 2024 10:00
Copy link
Contributor

This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself

@github-actions github-actions bot added the Stale beg a maintainer to review your PR label Jun 26, 2024
@Drulikar Drulikar added Stale Exempt PR can't go stale and removed Stale beg a maintainer to review your PR labels Jul 2, 2024
@Drulikar
Copy link
Contributor

Drulikar commented Jul 2, 2024

stale exempt until reviewed

Copy link
Contributor

@Drulikar Drulikar left a comment

Choose a reason for hiding this comment

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

This PR shouldn't be actually changing any resulting explosion values. Just run in debugger, turn on attack logging, and adv proc call each old explosion to evaluate the resulting cell_explosion any you need to determine the new values for. For loc, just mark some turf as your marked datum (don't care about the missing cause_data):

proc

For example you removed
explosion(projectile.loc, -1, 2, 4, 5, , , ,projectile.weapon_cause_data)
replacing it with
cell_explosion(projectile.loc, 200, 32, EXPLOSION_FALLOFF_SHAPE_LINEAR, null, projectile.weapon_cause_data)
When the old explosion actually resulted in this:
image

code/game/objects/items/devices/binoculars.dm Show resolved Hide resolved
Comment on lines -389 to -391
var/datum/effect_system/expl_particles/P = new/datum/effect_system/expl_particles()
P.set_up(4, 0, impact)
P.start()
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this necessary? It just looks way less interesting now. Did you intend this to be just a part of the cell_explosion proc and forgot?

old
new

code/modules/power/batteryrack.dm Outdated Show resolved Hide resolved
code/modules/power/batteryrack.dm Outdated Show resolved Hide resolved
code/modules/power/port_gen.dm Outdated Show resolved Hide resolved
code/modules/power/port_gen.dm Outdated Show resolved Hide resolved
code/modules/power/smes.dm Outdated Show resolved Hide resolved
code/modules/power/smes_construction.dm Outdated Show resolved Hide resolved
code/modules/projectiles/ammo_boxes/ammo_boxes.dm Outdated Show resolved Hide resolved
@Drulikar Drulikar marked this pull request as draft July 19, 2024 01:58
@Drulikar Drulikar removed the Stale Exempt PR can't go stale label Jul 19, 2024
Copy link
Contributor

This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself

@github-actions github-actions bot added the Stale beg a maintainer to review your PR label Jul 27, 2024
@harryob harryob closed this Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Balance You need to be a professional veteran game maintainer to comprehend what is being done here. Feature Feature coder badge Fix Fix one bug, make ten more Stale beg a maintainer to review your PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants