Zet0rz / nZombies-Unlimited

nZombies Unlimited
MIT License
43 stars 15 forks source link

Electricity System #39

Closed Zet0rz closed 5 years ago

Zet0rz commented 5 years ago

Electricity is normally a global gamestate, however since the only use Electricity has is in the context of entities, the system can be morphed to a per-entity system instead, where a global state works as the fallback. This allows individually powering entities, supporting more complicated power systems.

Punkinator7 commented 5 years ago

[ERROR] addons/nzombies-unlimited-master/gamemodes/nzombies-unlimited/gamemode/points.lua:7: attempt to compare string with number

  1. CanAfford - addons/nzombies-unlimited-master/gamemodes/nzombies-unlimited/gamemode/points.lua:7
    1. Buy - addons/nzombies-unlimited-master/gamemodes/nzombies-unlimited/gamemode/playeruse.lua:277
    2. unknown - addons/nzombies-unlimited-master/gamemodes/nzombies-unlimited/gamemode/playeruse.lua:241

This error occurred when I switched the power on and the switch itself flicks up and slowly goes back down edit: after a restart, I can no longer interact with the switch

Zet0rz commented 5 years ago

[ERROR]

I couldn't get this error. I did fix the handle going the wrong direction (the flick you describe), which was a purely visual bug.