Make payload blocks run onDestroyed() of the block payload it carries when destroyed. (#8253)
* Payloads go boom. * When a payload unit dies too * Keep the functionality, but limit it to a rule
This commit is contained in:
@@ -233,6 +233,7 @@ public class CustomRulesDialog extends BaseDialog{
|
||||
|
||||
title("@rules.title.unit");
|
||||
check("@rules.unitcapvariable", b -> rules.unitCapVariable = b, () -> rules.unitCapVariable);
|
||||
check("@rules.unitpayloadsexplode", b -> rules.unitPayloadsExplode = b, () -> rules.unitPayloadsExplode);
|
||||
numberi("@rules.unitcap", f -> rules.unitCap = f, () -> rules.unitCap, -999, 999);
|
||||
number("@rules.unitdamagemultiplier", f -> rules.unitDamageMultiplier = f, () -> rules.unitDamageMultiplier);
|
||||
number("@rules.unitcrashdamagemultiplier", f -> rules.unitCrashDamageMultiplier = f, () -> rules.unitCrashDamageMultiplier);
|
||||
|
||||
Reference in New Issue
Block a user