Skip to content

Commit ea3c8b5

Browse files
fix formatting
1 parent 7448954 commit ea3c8b5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/main/kotlin/org/openbase/planetsudo/game/strategy/DivineStrategy.kt

+9-9
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class DivineStrategy(agent: AgentInterface) : StrategyLevelLegacy(agent) {
6464
// -------------------------------------------->
6565
"See Resources" swat SwatTeam.NOT_COMMANDER inCase {
6666
agent.seeResource &&
67-
(agent.isTonicAtLimit && agent.seeResource(ResourceType.Tonic)).not()
67+
(agent.isTonicAtLimit && agent.seeResource(ResourceType.Tonic)).not()
6868
} then {
6969
agent.goToResource()
7070
}
@@ -110,10 +110,10 @@ class DivineStrategy(agent: AgentInterface) : StrategyLevelLegacy(agent) {
110110
object : Rule("PickUp") {
111111
override fun constraint(): Boolean {
112112
return !agent.isCommander && (
113-
agent.isTouchingResource(ResourceType.DoublePoints) || agent.isTouchingResource(
114-
ResourceType.ExtraMothershipFuel,
115-
)
116-
)
113+
agent.isTouchingResource(ResourceType.DoublePoints) || agent.isTouchingResource(
114+
ResourceType.ExtraMothershipFuel,
115+
)
116+
)
117117
}
118118

119119
override fun action() {
@@ -141,10 +141,10 @@ class DivineStrategy(agent: AgentInterface) : StrategyLevelLegacy(agent) {
141141
object : Rule("PickUp and Place") {
142142
override fun constraint(): Boolean {
143143
return agent.isCommander && (
144-
agent.isTouchingResource(ResourceType.DoublePoints) || agent.isTouchingResource(
145-
ResourceType.ExtraMothershipFuel,
146-
)
147-
) && !mothership.isMarkerDeployed && !agent.seeMarker()
144+
agent.isTouchingResource(ResourceType.DoublePoints) || agent.isTouchingResource(
145+
ResourceType.ExtraMothershipFuel,
146+
)
147+
) && !mothership.isMarkerDeployed && !agent.seeMarker()
148148
}
149149

150150
override fun action() {

0 commit comments

Comments
 (0)