Comments (3)
So should an id column be added to maintain order?
from devilutionx.
There already is an ID colum (at least in the TSV data), we just need to search the array for the right monster rather then just assuming that it's on MonsterData[MT_BASEMONSTER]
for (auto &baseMonster : MonsterData) {
if (baseMonster.ID == MT_BASEMONSTER)
// oh here it is
}
If it's not in the struct then it need to be added and we need to parse for it. We should probably also add a MT_CUSTOMMONSTER
or something like that so new monsters won't have to pretend to be some original monster type.
On a related not currently the game will crash and burn if you try to cut down the list. So we probably should handle cases where a monster type isn't found (but just concluding that there won't be a Snotspill quest if there is no Fallen Ones, or something to that effect.
from devilutionx.
... looks like we do need to add it :)
devilutionX/Source/monstdat.cpp
Line 482 in c4792be
from devilutionx.
Related Issues (20)
- [Issue Report]: Manjaro does not have libsodium version 23 HOT 66
- What is the correct directory to put the game assets to test the WiiU and PSP distributions? HOT 2
- [Feature Request]: please add starcraft to this source port. HOT 2
- [Issue Report]: --help no longer working HOT 2
- [Feature Request]: Keep playing after killing Diablo HOT 7
- [Feature Request]: Alternate Belt Auto-Fill HOT 9
- [Feature Request]: Setting to remove Search spell from item drops HOT 9
- [Issue Report]: Not getting any new unique items after starting a new game (same character, different difficulty level) HOT 2
- Crash when converting save from Diablo to Hellfire HOT 7
- [Issue Report]: Fireball hurts other players even with friendly fire disabled HOT 3
- [Feature Request]: Option to use scroll wheel to cycle through quick spells HOT 9
- [Issue Report]: Tiny graphical glitch in Town by Alien Nest (Hellfire) HOT 3
- UI not rendering properly at 640x480 on Amiga HOT 5
- [Issue Report]: possible big endian problem HOT 1
- [Issue Report]: Overflow with Acolyte Amulet? HOT 4
- [Issue Report]: Diablo's speech played on dlvl 16 when joining the game after he's been killed.
- [Issue Report]: AppImage menu to switch between diablo and hellfire no longer shows up HOT 2
- [Feature Request]: Griswold's Inventory (Multiplayer?) HOT 14
- [Issue Report]: Life/mana added at level 50 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devilutionx.