Commit Graph
15 Commits
Author SHA1 Message Date
BalaM314andGitHub 7b759d41df Disable leg damage on disarmed units (#9755)
* Disable leg damage on disarmed units

* import

* Disable crush damage from disarmed units
2024-04-19 09:40:47 -04:00
BalaM314andGitHub dc4f3ba972 Add bool Config::isDefault() (#9510)
* Add `bool Config::isDefault()`

* use Structs.eq instead of ==
2024-02-02 10:52:28 -05:00
BalaM314andGitHub 35df3202ae Add config option to disable logging trace requests (#9401)
* Add config option to disable logging trace requests

* Actually, just remove the trace logging

* Might as well
12 (soon 13) merged PRs
2023-12-23 09:16:48 -05:00
BalaM314andGitHub 68b06fdea6 Allow fetching unitCount by type, and buildCount without type (#9374)
* Allow fetching unitCount by type, and buildCount without type

* show in processor ui
2023-12-12 08:47:40 -05:00
BalaM314andGitHub dd9927d72d Correctly read item capacity in linked vaults (#9273) 2023-11-13 02:10:45 -05:00
BalaM314andGitHub a92bce2c14 Expose NetServer currentlyKicking for plugin access (#8817)
* Expose NetServer currentlyKicking for plugin access

* Move code around

* Un-final

* currentlyKicking no longer needs a wrapper array
2023-07-26 01:44:20 -04:00
BalaM314andGitHub d14cdfd59c Allow ulocate to output enemy buildings (#6704)
* Allow ulocate to output enemy buildings
Previously you would have to use ucontrol getblock to get the actual Building
that's weird and just confuses newbs
like me

* whoops, turns out ulocate doesn't have a range

* c o d e s t y l e

* Always return building object if on same team
2023-06-16 14:27:05 -04:00
BalaM314andGitHub c49075ff0d Correctly display ∞ unit cap in reconstructors (#8709)
* Correctly display ∞ in reconstructors

UnitFactory.java uses getStringCap, but Reconstructor uses getCap
this was probably missed in 8cabae1

* might as well fix formatting

same format as UnitFactory.java
2023-06-13 10:37:17 -04:00
BalaM314andGitHub 5ec0e9dc9f Use shouldExplode, explosionMinWarmup in generators (#8600) 2023-05-13 09:53:47 -04:00
BalaM314andGitHub 6c7d506e42 Gradle opt -PnoLocalArc to force no localArc (#8552)
renaming Arc is annoying, also vscode doesnt like it
2023-05-06 21:33:45 -04:00
BalaM314andGitHub c1d3cdc5cb Fix override of Building.block in PayloadSource (#8551)
* Would break(without crash) mods that read the block config of PayloadSource
2023-05-06 21:31:02 -04:00
BalaM314andGitHub 08f63122ba Set controller after setting spawnedByCore (fix UnitChangeEvent) (#8428)
* CoreBlock.playerSpawn: Set spawnedByCore first
* The call to unit.controller() calls player.unit(unit)
* That function fires UnitChangeEvent
* The unit in UnitChangeEvent has spawnedByCore incorrectly set to false
* This caused me to waste an hour of my life while making a plugin

* Might as well improve code readability
2023-03-25 13:55:26 -04:00
BalaM314andGitHub d6fc4bfdb1 Add Drill.drillEffectChance (for very fast drills) (#7704) 2022-10-13 13:12:03 -04:00
BalaM314andGitHub d18579b59a Allow printflushing to null (#7243)
* Allow `printflush`ing to null

* Dumb
2022-07-28 09:41:31 -04:00
BalaM314andGitHub 8ec2e40610 Add "Exiting to reload mods." logger message (#6662)
To allow for the game to be automatically restarted
2022-03-24 10:42:44 -04:00