Change the text of custom activity zones

When an activity zone is spawned through the
use of `createactivityzone`, and `i` is 35,
then it'll change the activity zone text to
"Press ENTER to interact".
This commit is contained in:
AllyTally
2021-04-15 01:12:37 -03:00
committed by Misa Elizabeth Kai
parent 1cbc3bdc7c
commit 0685cade69
3 changed files with 10 additions and 5 deletions

View File

@@ -759,7 +759,7 @@ void entityclass::generateswnwave( int t )
}
}
void entityclass::createblock( int t, int xp, int yp, int w, int h, int trig /*= 0*/, const std::string& script /*= ""*/ )
void entityclass::createblock( int t, int xp, int yp, int w, int h, int trig /*= 0*/, const std::string& script /*= ""*/, bool custom /*= false*/)
{
k = blocks.size();
@@ -1051,7 +1051,12 @@ void entityclass::createblock( int t, int xp, int yp, int w, int h, int trig /*=
trig=0;
break;
case 35:
block.prompt = "Press %s to activate terminal";
if (custom)
{
block.prompt = "Press %s to interact";
} else {
block.prompt = "Press %s to activate terminal";
}
block.script = "custom_"+customscript;
block.setblockcolour("orange");
trig=0;