AardCrowley / Search-and-Destroy

Safe, Legal Search and Destroy
10 stars 14 forks source link

Smart scan replaces conscan #48

Closed AardNaricain closed 3 years ago

AardNaricain commented 3 years ago

Smart scan is a replacement for conscan that aims to be less spammy and have less con lag, but it is a bit more complex behind the scenes:

First, when you enter a room, remember how many mobs you see in the mob list (between the roomchars tags). Then scan the area and filter the results down to just target mobs. If the number of mobs in the current room is greater than the scanned number of mobs in the current room, AND your current target wasn't found, assume there might be something noscan here and do a consider. Filter the results of consider down to just your current targets.

Add mobs found to the database, but only once (con will remember which mobs scan saw and only add ones it didn't catch).