isaacscript-common 1.2.260 → 1.2.261

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -171,11 +171,11 @@ function ____exports.logEntities(includeBackgroundEffects, entityTypeFilter)
171
171
  end
172
172
  local effect = entity:ToEffect()
173
173
  if effect ~= nil then
174
- debugString = debugString .. ("." .. tostring(effect.State)) .. " (effect)"
174
+ debugString = debugString .. (" (effect) (State: " .. tostring(effect.State)) .. ")"
175
175
  end
176
176
  local familiar = entity:ToFamiliar()
177
177
  if familiar ~= nil then
178
- debugString = debugString .. ("." .. tostring(familiar.State)) .. " (familiar)"
178
+ debugString = debugString .. (" (familiar) (State: " .. tostring(familiar.State)) .. ")"
179
179
  end
180
180
  local knife = entity:ToKnife()
181
181
  if knife ~= nil then
@@ -187,11 +187,11 @@ function ____exports.logEntities(includeBackgroundEffects, entityTypeFilter)
187
187
  end
188
188
  local npc = entity:ToNPC()
189
189
  if npc ~= nil then
190
- debugString = debugString .. ((("." .. tostring(npc.State)) .. " (NPC) (CanShutDoors: ") .. tostring(npc.CanShutDoors)) .. ")"
190
+ debugString = debugString .. (((" (NPC) (State: " .. tostring(npc.State)) .. ") (CanShutDoors: ") .. tostring(npc.CanShutDoors)) .. ")"
191
191
  end
192
192
  local pickup = entity:ToPickup()
193
193
  if pickup ~= nil then
194
- debugString = debugString .. ("." .. tostring(pickup.State)) .. " (pickup)"
194
+ debugString = debugString .. (" (pickup) (State: " .. tostring(pickup.State)) .. ")"
195
195
  end
196
196
  local player = entity:ToPlayer()
197
197
  if player ~= nil then
@@ -205,6 +205,7 @@ function ____exports.logEntities(includeBackgroundEffects, entityTypeFilter)
205
205
  if tear ~= nil then
206
206
  debugString = debugString .. " (tear)"
207
207
  end
208
+ debugString = debugString .. (" (Index: " .. tostring(entity.Index)) .. ")"
208
209
  debugString = debugString .. (" (InitSeed: " .. tostring(entity.InitSeed)) .. ")"
209
210
  debugString = debugString .. (" (DropSeed: " .. tostring(entity.DropSeed)) .. ")"
210
211
  debugString = debugString .. (((" (Position: " .. tostring(entity.Position.X)) .. ", ") .. tostring(entity.Position.Y)) .. ")"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.260",
3
+ "version": "1.2.261",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",