Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
int encounterMon()
{
int encounter;
srand (time(NULL));
int encounterRate = (rand() % 100) + 1;
if (encounterRate<=(60-luck)){
encounter = 1; //when encounter=1, trigger battle sequence
return encounter;
}
else{
encounter = 0; //when encounter=0, don't trigger anything
return encounter;
}
}