This commit is contained in:
Anuken
2020-12-12 11:14:17 -05:00
parent e6c4a6cf69
commit 8fa6b76bf9
3 changed files with 4 additions and 2 deletions

View File

@@ -402,6 +402,8 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
/** Actually destroys the unit, removing it and creating explosions. **/
public void destroy(){
if(!isAdded()) return;
float explosiveness = 2f + item().explosiveness * stack().amount * 1.53f;
float flammability = item().flammability * stack().amount / 1.9f;