1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Up the trinkets/crewmates limit to 100

2.2 will handle this just fine, because there are 100 slots allocated
for trinkets and crewmates, and it will save and load all 100 slots just
fine. Except, it only resets the first 20 slots when starting a level
from the beginning, but that's minor and already fixed in 2.3 anyway.

This commit makes it so you can now place up to one hundred trinkets and
crewmates in the editor.
This commit is contained in:
Info Teddy 2020-01-23 06:43:53 -08:00 committed by Ethan Lee
parent 782ce95d11
commit cd7cc317b5

View file

@ -4996,7 +4996,7 @@ void editorinput( KeyPoll& key, Graphics& dwgfx, Game& game, mapclass& map, enti
{
if(ed.drawmode==3)
{
if(ed.numtrinkets<20)
if(ed.numtrinkets<100)
{
addedentity(ed.tilex+ (ed.levx*40),ed.tiley+ (ed.levy*30),9);
ed.lclickdelay=1;
@ -5004,7 +5004,7 @@ void editorinput( KeyPoll& key, Graphics& dwgfx, Game& game, mapclass& map, enti
}
else
{
ed.note="ERROR: Max number of trinkets is 20";
ed.note="ERROR: Max number of trinkets is 100";
ed.notedelay=45;
}
}
@ -5091,7 +5091,7 @@ void editorinput( KeyPoll& key, Graphics& dwgfx, Game& game, mapclass& map, enti
}
else if(ed.drawmode==15) //Crewmate
{
if(ed.numcrewmates<20)
if(ed.numcrewmates<100)
{
addedentity(ed.tilex+ (ed.levx*40),ed.tiley+ (ed.levy*30),15,1 + int(fRandom() * 5));
ed.lclickdelay=1;
@ -5099,7 +5099,7 @@ void editorinput( KeyPoll& key, Graphics& dwgfx, Game& game, mapclass& map, enti
}
else
{
ed.note="ERROR: Max number of crewmates is 20";
ed.note="ERROR: Max number of crewmates is 100";
ed.notedelay=45;
}
}