Skip to content

Commit

Permalink
Don't put multiple attributes of an object on the same line (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrianshChari authored Oct 26, 2024
1 parent ae7af7d commit 83d3831
Showing 1 changed file with 33 additions and 11 deletions.
44 changes: 33 additions & 11 deletions src/js/shared_controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -1198,20 +1198,42 @@ function createField() {

var createSide = function (i) {
return new calc.Side({
spikes: spikes[i], isSR: isSR[i], steelsurge: steelsurge[i],
vinelash: vinelash[i], wildfire: wildfire[i], cannonade: cannonade[i], volcalith: volcalith[i],
isReflect: isReflect[i], isLightScreen: isLightScreen[i],
isProtected: isProtected[i], isSeeded: isSeeded[i], isForesight: isForesight[i], isSteelySpirit: isSteelySpirit[i],
isTailwind: isTailwind[i], isHelpingHand: isHelpingHand[i], isFlowerGift: isFlowerGift[i], isFriendGuard: isFriendGuard[i],
isAuroraVeil: isAuroraVeil[i], isBattery: isBattery[i], isPowerSpot: isPowerSpot[i], isSwitching: isSwitchingOut[i] ? 'out' : undefined
spikes: spikes[i],
isSR: isSR[i],
steelsurge: steelsurge[i],
vinelash: vinelash[i],
wildfire: wildfire[i],
cannonade: cannonade[i],
volcalith: volcalith[i],
isReflect: isReflect[i],
isLightScreen: isLightScreen[i],
isProtected: isProtected[i],
isSeeded: isSeeded[i],
isForesight: isForesight[i],
isTailwind: isTailwind[i],
isHelpingHand: isHelpingHand[i],
isFlowerGift: isFlowerGift[i],
isSteelySpirit: isSteelySpirit[i],
isFriendGuard: isFriendGuard[i],
isAuroraVeil: isAuroraVeil[i],
isBattery: isBattery[i],
isPowerSpot: isPowerSpot[i],
isSwitching: isSwitchingOut[i] ? 'out' : undefined
});
};
return new calc.Field({
gameType: gameType, weather: weather, terrain: terrain,
isMagicRoom: isMagicRoom, isWonderRoom: isWonderRoom, isGravity: isGravity,
isBeadsOfRuin: isBeadsOfRuin, isTabletsOfRuin: isTabletsOfRuin,
isSwordOfRuin: isSwordOfRuin, isVesselOfRuin: isVesselOfRuin,
attackerSide: createSide(0), defenderSide: createSide(1)
gameType: gameType,
terrain: terrain,
isBeadsOfRuin: isBeadsOfRuin,
isTabletsOfRuin: isTabletsOfRuin,
isSwordOfRuin: isSwordOfRuin,
isVesselOfRuin: isVesselOfRuin,
weather: weather,
isMagicRoom: isMagicRoom,
isWonderRoom: isWonderRoom,
isGravity: isGravity,
attackerSide: createSide(0),
defenderSide: createSide(1)
});
}

Expand Down

0 comments on commit 83d3831

Please sign in to comment.