dont use nil globals, pass no args to Entity:New() instead

This commit is contained in:
binarycat 2022-02-26 13:21:52 -05:00 committed by lustlion
parent 1580dc3463
commit 4efc99659c
8 changed files with 8 additions and 9 deletions

View File

@ -1,4 +1,4 @@
Arrow = Entity:New(x,y)
Arrow = Entity:New()
function Arrow:New(x,y,rotation,speed)
local o = Entity:New(x,y)

View File

@ -1,4 +1,4 @@
CursedBook = Entity:New(x,y)
CursedBook = Entity:New()
function CursedBook:New(x,y)
local o = Entity:New(x,y)

View File

@ -1,4 +1,4 @@
Decoration = Entity:New(x,y)
Decoration = Entity:New()
function Decoration:New(x,y,animation,lightRange)
local o = Entity:New(x,y)

View File

@ -1,4 +1,4 @@
Fairy = Entity:New(x,y)
Fairy = Entity:New()
function Fairy:New(x,y)
local o = Entity:New(x,y)

View File

@ -1,4 +1,4 @@
HookAnchor = Entity:New(x,y)
HookAnchor = Entity:New()
function HookAnchor:New(x,y,hookDistance)
local o = Entity:New(x,y)

View File

@ -1,4 +1,4 @@
Kupo = Entity:New(x,y)
Kupo = Entity:New()
function Kupo:New(x,y)
local o = Entity:New(x,y)

View File

@ -1,4 +1,4 @@
Particle = Entity:New(x,y)
Particle = Entity:New()
LoadedObjects.Particles = {}
function Particle:New(x,y,particle_data)

View File

@ -1,5 +1,4 @@
Player = Entity:New(x,y)
Player = Entity:New()
function Player:New(x,y)
local o = Entity:New(x,y)