diff options
author | Hello=) <hello@themanaworld.org> | 2025-03-01 06:41:16 +0300 |
---|---|---|
committer | Hello TMW <hello@themanaworld.org> | 2025-03-12 12:42:10 +0000 |
commit | e23b028861e92d025d1bf851783c1059e22fbb6c (patch) | |
tree | ff1b457df141f4478a3322ca8d20f49d7f4543ab /etc | |
parent | 88dfbd91ed22ab4ad98b2b9f0243f9d9faa9b49d (diff) | |
download | tmwa-e23b028861e92d025d1bf851783c1059e22fbb6c.tar.gz tmwa-e23b028861e92d025d1bf851783c1059e22fbb6c.tar.bz2 tmwa-e23b028861e92d025d1bf851783c1059e22fbb6c.tar.xz tmwa-e23b028861e92d025d1bf851783c1059e22fbb6c.zip |
This changes summon() to return summoned being bl_id
Technically it makes TMWA summon() builtin a bit more like Herc summon().
It now would return summon's being bl_id if summon successful.
Rationale behind this change:
1) Makes call behaving a bit more like it does now in Herc, why not?
2) Having being ID allows to do something with just spawned summon in scripts.
(now finding just summoned being is hard/weird code-wise)
3) Having ID of mob allows to check if summon succeeded. Summon can fail
if e.g. position randomized and chosen position is a collision. This
would allow me to implement "antibug" summon refactor in content.
Caveat:
Content (spells) needs refactor to swallow fact its now returns "int" instead.
If this given go, it MUST only be merged with matching content change.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions