Closed u624ka closed 8 years ago
Плохой коммит.
window.agar
, но сам по себе ничего не должен делать, если эту переменную не трогать.Без запущенного бакаскрипта вообще ломает игру.
Uncaught TypeError: Cannot read property 'cellNameOffsetY' of undefined
colorCoding & splitGuide
) лучше вынести в бакаскрипт, а из экспоза только вызывать нужную функцию.
Например, правило skin
реализовано именно так.window.bakaconf
, а должно быть наоборот, бакаскрипт должен обращаться к переменной window.agar
.showMass
, scoreBackCoords
, cellMassOffset
, paintPellets
, virusShots
ломаются на предыдущих версиях агара, и с вероятностью, близкой к 100% сломаются в следующей.Экспоз должен только вытаскивать наружу переменную window.agar, но сам по себе ничего не должен делать, если эту переменную не трогать
Хорошо, учту на будущее.
Регекспы хрупкие.
Зич поменял логику в новейшей версии. Например, в коде для покраски вынес цвет в отдельное значение и уже потом его присваивал заливке с границами. Я не понимаю, как ты хочешь покрыть все возможные извращения одним выражением. Само собой, они ломаться будут время от времени.
В сообщении к коммиту упоминаются хоткеи, хотя экспоз ими не заведует.
Моя ошибка: они в бакаскрипте заданы.
"Show Mass" now displays mass of every cell Viruses show the number of W's until split instead of mass Cell names and mass Y position is now adjustable through window.bakaconf.cellNameOffsetY and .cellMassOffsetY Cell mass font size is now adjustable trough window.bakaconf.cellMassScale Score X and Y are now adjustable through window.bakaconf.scoreX and .scoreY Cells are now color-coded based on threat level (can splitkill, can eat, neutral, can be eaten, can be splitkilled). Enabled through window.agar.enableColorCoding. By default, can be toggled by '['. Color coding can be set to offensive (compare to your biggest cell) or defensive (compare to your smallest cell). Set through window.agar.colorOffensive (true for offensive, false for defensive). Toggled by ''' (single quote). Virus and pellet colors are now adjustable through window.bakaconf.virusColor and .pelletColor
Experimental: split guides for own cells, viruses and enemy cells that can splitkill you. Enabled through window.agar.enableSplitGuides, can be toggled by ']' by default. Split guide linewidth adjustable through window.bakaconf.splitGuideWidth