pressing C to clear doesn't destroy sawblades
No description provided.
Comments (7)
-
reporter -
This points at a bit of refactoring which needs done where we should split
damage()
anddestroy()
methods. Currently bullets just calldestroy()
on things they hit since everything used to be one hit kill, so things that aren't immediately killed currently overridedestroy()
to take damage instead. -
reporter that's a good idea, I imagine it wouldn't be difficult to implement; you could just have the base class's polymorphic
damage()
function callingdestroy()
, and then nothing would need to be changed anywhere else, except the bullets that call it and the places where we want to take damage instead of destroying.The carrier takes damage though, and that gets cleared with one press of C, what's the deal there?
-
Oh, I was a little wrong, destroy is actually called from within
enemy::base::collided_with
instead of from the bullet, which the carrier overrides. I think splitting into damage and destroy would still make sense though. -
reporter Yep I agree.
-
reporter - changed status to resolved
Resolved by the damage branch
-
reporter - removed milestone
Removing milestone: Beta (automated comment)
- Log in to comment
correction, pressing it loads of times does - the clear thing should probably bypass its multiple hit thing