Closed slothybutt closed 1 year ago
So for arrows, the default colour that doesn't get explicitly set is blue, while for hardlights it is purple. Yet they still use the same property for colour, meaning the property itself doesn't have a concise default. Aaargh.
Default colours:
Same problem happens with the "direction" property (31), used for Cromblers, Sweep Lasers, and Doomerangs. Cromblers have it set to "Down", Doomerangs have it set to "Up" (iirc), and i think Sweep Lasers have it set to "Right". I'm not sure on the sweep laser's direction, but I know it's different from the Crombler's.
Used script for reference:
-- List all properties that are used by multiple elements
local P = require("levelhead.data.properties")
local E = require("levelhead.data.elements")
local OBJ = require("levelhead.level.object")
local l = {}
for i=0, P:getHighestID() do
l[i] = {}
end
--skip Delete because we don't know it's properties
for i=1, E:getHighestID() do
--skip the ones with a parent because their parent will take care of it
if E:getParent(i)=="No" then
for prop in E:iterateProperties(i) do
table.insert(l[prop], i)
end
end
end
local out = {}
local function t(f, ...)
table.insert(out, string.format(f, ...))
end
local y = level.top
for i=0, P:getHighestID() do
local ll = l[i]
if #ll>=2 then
t("%s (%i):", P:getName(i), P:getID(i))
for x,v in ipairs(ll) do
level:addObject(OBJ:new(v), x, y)
t("\t%s (%i)", E:getName(v), E:getID(v))
end
y = y + 1
end
end
local out = table.concat(out, "\n")
love.system.setClipboardText(out)
MainUI:popup(out)
- [x] Sending Channel (0): 0 - [x] Receiving Channel (1): 0 - [x] Start State (2): Inactive - [x] Rotation (3): mostly Up - Pressure Switch (35) - Prize Block (40) - Cannon (42) Left - Tempswitch (98) - Regret Gate (133) Right - Boombox (139) - Waitswitch (158) - [x] Direction (4): - Blaster (31) 0 - Trigblaster (39) 0 - Arrow Hologram (51) 90 - Puncher (204) 90 - [x] Invisible (5): No - [x] Jems Required (6): All - [x] Enemies Required (7): All - [x] Locking (8): No - [x] Behaviour (13): Reusable - [x] Range (14): 3 - [x] Power (23): 2000 - [x] Spin Speed (24): 0 - [x] Movement (30): Horizontal - [x] Direction (31): - Crombler (45) Down - Doomerang (93) Up - Sweep Laser (138) Right - [x] Cooldown (32): - Cannon (42) 2.00 - Lookannon (44) 2.00 - Crombler (45) 1.00 - Doomerang (93) 1.00 - [x] Time Offset (33): 0.00 - [x] Distance (35): 2 - [x] Speed (36): Medium - [x] Start Direction (40): 0 - [x] Rotation Speed (41): 90 - [x] Length (42): 4 - [x] Chains (45): 1 - [x] Color (47): - Hardlight (7) Fuchsia - Keycard (29) Gold - Key Gate (30) Gold - Rift (38) Blue - Arrow Hologram (51) Blue - Bumper (125) Gold - Key Chest (186) Gold - Key Switch (187) Gold - Puncher (204) Gold - [x] Projectile (48): Steel - [x] Receiving Channel (49): 0 - [x] Rotation Speed (58): 60 - [x] Switch Requirements (60): All Active - [x] Rotation Style (72): Spin - [x] Swing Degrees (73): - Blaster (31) 45 - Trigblaster (39) 45 - Burny Whirler (49) 90 - Spike Chainer (58) 90 - [x] Swing Speed (74): 50 - [x] Swing Time Offset (75): 0 - [x] Muted (76): No - [x] Swing Speed (79): 100 - [x] Range Right (80): 3 - [x] Range Up (81): 3 - [x] Range Left (82): 3 - [x] Range Down (83): 3 - [x] Detection Shape (84): Square - [x] Behaviour (85): Hold - [x] Horizontal Flip (86): No - [x] Fire Style (87): Hot Fire - [x] Sending Channel (90): None - [x] Walk Direction (105): Left - [x] Color (109): Red
- Rotation (3): mostly Up - Pressure Switch (35) - Prize Block (40) - Cannon (42) Left - Tempswitch (98) - Regret Gate (133) Right - Boombox (139) - Waitswitch (158) - Direction (4): - Blaster (31) 0 - Trigblaster (39) 0 - Arrow Hologram (51) 90 - Puncher (204) 90 - Direction (31): - Crombler (45) Down - Doomerang (93) Up - Sweep Laser (138) Right - Cooldown (32): - Cannon (42) 2.00 - Lookannon (44) 2.00 - Crombler (45) 1.00 - Doomerang (93) 1.00 - Color (47): - Hardlight (7) Fuchsia - Keycard (29) Gold - Key Gate (30) Gold - Rift (38) Blue - Arrow Hologram (51) Blue - Bumper (125) Gold - Key Chest (186) Gold - Key Switch (187) Gold - Puncher (204) Gold - Swing Degrees (73): - Blaster (31) 45 - Trigblaster (39) 45 - Burny Whirler (49) 90 - Spike Chainer (58) 90
This likely applies to other objects as well but I can't be bothered to check