Anders Jenbo
0034ddd5b1
Clean up IsTownerPresent
5 years ago
qndel
e9c711dc9a
add IsTownerPresent
5 years ago
qndel
e75ea30ece
fix hellfire/cows crash
5 years ago
obligaron
9a6895352c
Remember last frame when animation is changed for towners (girl & cow farmer)
5 years ago
qndel
58367c7e32
talkto debug command ( #2666 )
5 years ago
qndel
d76d58bcc2
fix wrong cleanup of farmer value ( #2250 )
5 years ago
Anders Jenbo
5ddcd90ff9
Make NetSendCmdQuest() take a quest structure as input
5 years ago
Anders Jenbo
17f1991b45
Clean up towners.cpp
5 years ago
Anders Jenbo
6ba7895956
Fix farmer not leaving town after finishing his quest
5 years ago
Anders Jenbo
fcbf2802cb
Fix Celia's dialog when reciving Theodor
5 years ago
Anders Jenbo
3878c06bd0
Fix Complete Nut's dialog when reciving the gray suit
5 years ago
Anders Jenbo
a8a16d6083
Make Celia go home after stating so
...
When reciving Theodor Celia stats that she will be going home.
This makes her not spawn after the quest is done, same as the farmer.
5 years ago
Anders Jenbo
a3527b5f54
Update towner graphics when compleating quests
...
Previously Celia and the Complete Nut would not update there graphics
before your next visit to down, despite reciving there descried item.
5 years ago
vladtepesch
54b60101f5
No More Tears ( #2589 )
5 years ago
vladtepesch
7b33e8e856
Make farmer not wondering about explosion forever ( #2592 )
5 years ago
Robin Eklind
b2e94e2d8a
towners: add BUGFIX for Griswold custom towner order animation
...
Issue located by Andi and Anders if my memory serves me right.
5 years ago
Anders Jenbo
d523fc1e81
Cleanups
5 years ago
Anders Jenbo
9b8bf92575
Rename quest globals
5 years ago
Anders Jenbo
96bf75b502
Rename player globals
5 years ago
Anders Jenbo
bc59218d0d
More clang-tidy/Android Studio cleanups
5 years ago
Anders Jenbo
d9e0658643
Clang-tidy: basic naming
5 years ago
Juliano Leal Goncalves
cbb84199c2
♻️ Replace Point addition with 'Point + Displacement'
5 years ago
ephphatha
357f6f1dc3
Move RNG functions to their own header/source files
5 years ago
Andrew James
20190ee687
Update random number functions to avoid IB ( #2226 )
...
* Update random number functions to avoid IB
Most calls to set seed were using uint32_t already, there were a few variables which were better served by having their type changed from signed to unsigned. The one exception is ItemStruct::_iSeed. This is an identifier that also happens to be used as a seed occasionally so a comment was added documenting this exception.
Includes suggested style changes for Source/towners.h; Source/towners.cpp; Source/msg.h; Source/multi.h
5 years ago
ephphatha
f4f6a8a51e
Refactor PlaySfxLoc to take a Point instead of x/y params
...
Because of the heavy usage of this function in objects.cpp and the mixed use of aliases and direct references to the active object in Operate*Door functions I've done some refactoring of those areas beyond what is strictly necessary. Hopefully this makes sense and is reasonable to include in this change.
5 years ago
Anders Jenbo
22b632f04a
♻️ Clean up implicit bool conversions
5 years ago
Gleb Mazovetskiy
8a9618aea2
♻️ Clean up `cel_header.hpp`
...
1. Rename `CelGetFrameStart` to `CelGetFrame`, in line with the other 2
functions with the same name and load the `uint32_t` safely.
2. Remove redundant `FrameHeader`, simply use `LoadLE16`.
3. Document all the functions.
5 years ago
Gleb Mazovetskiy
14218080b6
🚚 engine.h: Extract `CelGetFrame` and friends
5 years ago
Gleb Mazovetskiy
e40b1963f9
🚚 engine.h: Extract `CelSprite` and file loading
5 years ago
qndel
816b244689
HasItem/RemoveInvItem combo refactor
5 years ago
qndel
8aec2faed0
Fix clang format in towners.cpp
5 years ago
Vladimir Olteanu
cc9783b8d9
Use WalkingDistance in TalkToTowner
5 years ago
Juliano Leal Goncalves
b04047ba4d
♻️ Leverage 'Point' struct on 'SpawnUnique'
5 years ago
Juliano Leal Goncalves
d55cd99dd5
🚚 Rename 'direction' enum to 'Direction'
5 years ago
Juliano Leal Goncalves
07e6a98fc4
✏️ Fix typos and spelling mistakes on 'HeroSpeech' members
5 years ago
Juliano Leal Goncalves
15c46b9eb0
💬 Rename HeroSpeech members to improve discoverability
5 years ago
Juliano Leal Goncalves
5350250a76
🚚 Rename speech functions to 'Say' variations
5 years ago
Juliano Leal Goncalves
8c620ce29e
♻️ Extract 'HeroSpeech' enum class for hero sounds instead of using raw `int`s
5 years ago
Vladimir Olteanu
0c7c71d579
Cleanup of items.cpp ( #1967 )
...
- Apply Point where applicable
- Deduplicate vendor logic
- Add comment about unhanded edge case in GetSuperItemLoc
- Initialize some variables at deceleration
5 years ago
Anders Jenbo
ad97ebe980
🔥 Remove redundant code from towners.cpp
...
This changes one bavious. Previously walking away from the dead guy
would interupt the "Your death shall be reveanged", the interuption
seamed un natural and the code didn't seam to have been specifically
made for this case (TownCtrlMsg).
Fix several edge cases in quests where the incorrect state could be reached
5 years ago
Gleb Mazovetskiy
2b690137a3
🧹 towners.cpp: Avoid allocations for animOrder
...
There is no need for `animOrder` to be a vector -- it's static data.
We don't have `std::span` yet, so opted for pointer + size.
5 years ago
Anders Jenbo
9f00de73c3
🐛 [Diablo] Fix Ogden's animation cycle
5 years ago
Anders Jenbo
4c217ec4fc
♻️ Use a vector to more sensibly assign NPC animation cycles
5 years ago
Anders Jenbo
05f8f9524f
♻️ Handle towner talk logic via initialization list instead of switch
5 years ago
Anders Jenbo
0477e86aa1
🐛 Fix Griswold animation cycle
5 years ago
Anders Jenbo
4b577329f4
♻️ Refactor towner initialization
5 years ago
Anders Jenbo
e4e924eb72
🎨 Clean up code style in towners.cpp
5 years ago
Anders Jenbo
6321bf04d5
♻️ Pass player to towner by reference instead of index
5 years ago
Anders Jenbo
c98a1409f9
♻️ Pass towners by reference instead of index
5 years ago
Anders Jenbo
f263e4e9d1
♻️ Split TalkToTowner in to a per towner sub-function
5 years ago