Project-Diablo-2 / BH

A modified version of slashdiablo's BH for Project Diablo 2
GNU Affero General Public License v3.0
23 stars 23 forks source link

How can we see what zone is Corrupted? #38

Closed croboy closed 6 months ago

croboy commented 7 months ago

I can see there is nCorruptZone in PlayerData Struct.

How can we check if we are in a Corrupted zone, or is there a way to return which map is corrupted?

I want something like this:

if (nCorruptZone == 1) { // Corrupted } else { // Not corrupted }

or

getCorruptedMapID() { // Somehow retrieve which areaID is corrupted return mapID; }

Is this possible?

xkanzeon commented 7 months ago

Something akin to this? https://github.com/Project-Diablo-2/BH/blob/19e68f7817a6c89f203e8f3b97d7f2e61525df70/BH/Modules/ScreenInfo/ScreenInfo.cpp#L285-L301

croboy commented 7 months ago

Something akin to this?

https://github.com/Project-Diablo-2/BH/blob/19e68f7817a6c89f203e8f3b97d7f2e61525df70/BH/Modules/ScreenInfo/ScreenInfo.cpp#L285-L301

Yes exactly 😂 How can I collaborate with you guys? Really love learning about Diablo 2 and how it works. Is there a discord I can join or something?

croboy commented 6 months ago

Resolved thanks