mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-05 18:30:22 -08:00
Compare commits
2 commits
134167cb2e
...
e399ae9182
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e399ae9182 | ||
|
|
b3f0e9399d |
3 changed files with 5 additions and 3 deletions
|
|
@ -95,8 +95,9 @@ public class Block extends UnlockableContent implements Senseable{
|
|||
/** if true, double-tapping this configurable block clears configuration. */
|
||||
public boolean clearOnDoubleTap = false;
|
||||
/** whether this block has a tile entity that updates */
|
||||
@NoPatch
|
||||
public boolean update;
|
||||
/** whether this block has health and can be destroyed */
|
||||
/** whether this block has health and can be destroyed. note that setting this to false does nothing if update = true! */
|
||||
public boolean destructible;
|
||||
/** whether unloaders work on this block */
|
||||
public boolean unloadable = true;
|
||||
|
|
|
|||
|
|
@ -26,4 +26,4 @@ org.gradle.caching=true
|
|||
org.gradle.internal.http.socketTimeout=100000
|
||||
org.gradle.internal.http.connectionTimeout=100000
|
||||
android.enableR8.fullMode=false
|
||||
archash=65d654d634
|
||||
archash=6d94644c8b
|
||||
|
|
|
|||
|
|
@ -480,6 +480,7 @@ public class PatcherTests{
|
|||
|
||||
@Test
|
||||
void addWeapon() throws Exception{
|
||||
int oldSize = UnitTypes.flare.weapons.size;
|
||||
Vars.state.patcher.apply(Seq.with("""
|
||||
unit.flare.weapons.+: {
|
||||
x: 0
|
||||
|
|
@ -493,7 +494,7 @@ public class PatcherTests{
|
|||
"""));
|
||||
|
||||
assertNoWarnings();
|
||||
assertEquals(3, UnitTypes.flare.weapons.size);
|
||||
assertEquals(oldSize + 1, UnitTypes.flare.weapons.size);
|
||||
assertEquals(100, UnitTypes.flare.weapons.peek().bullet.damage);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue