Fixes Gargoyle thermal vision (Visceratika 2+), refactors sight trait updates #646
+45
−14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About The Pull Request
Ties
update_sight()
to the gaining/removal of sight-altering traits, rather than individual use-cases callingupdate_sight()
whenever they assign or remove these traits (thermal, night vision, x-ray).This fixes the gargoyle thermal vision from Visceratika 2+, it did not work unless something else called
update_sight()
on them.Sadly, the signal for adding or removing traits don't handle sources, so I couldn't group these and turn it into a switch case.
Testing:
Activated Visceratika 2, noticed mobs immediately showing up. Waited. Mobs disappeared from sight when it was removed.
![image](https://private-user-images.githubusercontent.com/33333517/407745099-6b37a044-7d87-46fb-82ce-8f162d56667b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMjM4NTMsIm5iZiI6MTczOTMyMzU1MywicGF0aCI6Ii8zMzMzMzUxNy80MDc3NDUwOTktNmIzN2EwNDQtN2Q4Ny00NmZiLTgyY2UtOGYxNjJkNTY2NjdiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDAxMjU1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI4MWUwNjNjYTg4NTZlNmZkMmE1YmFjODU1ZGVhNjMzMzk3MjUyNDhkNDcxODlmNTIyZGI5YTk3OTdhODYwOTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.5MmyM2o56ZHtSQ8s9j9k32Bz7akYWy7YtsxsZRgN1pQ)
Activated Feng Shui 1, noticed I can see mob. Waited. Mob begone.
![image](https://private-user-images.githubusercontent.com/33333517/407749864-190ef02d-8ac0-45e5-8cfe-af0b2986981f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMjM4NTMsIm5iZiI6MTczOTMyMzU1MywicGF0aCI6Ii8zMzMzMzUxNy80MDc3NDk4NjQtMTkwZWYwMmQtOGFjMC00NWU1LThjZmUtYWYwYjI5ODY5ODFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDAxMjU1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNmOGJmOGI2NGZiMTFlMTgzZDhjMDYwZjU2ZjU2ODMwYzE5MDVjNWNiYmRmMTI3OTAxZDQwM2QzZWEyZTUxMGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.WMNRtP_oixV6cdtbecSwAiVzQQK_ypIBTV236HjnMwk)
Activated Auspex 5, re-entered body, saw blue tint + auras for a little more, then they went away.
![image](https://private-user-images.githubusercontent.com/33333517/407751779-fdfd00c7-9362-4605-8239-32bddc0d9de2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMjM4NTMsIm5iZiI6MTczOTMyMzU1MywicGF0aCI6Ii8zMzMzMzUxNy80MDc3NTE3NzktZmRmZDAwYzctOTM2Mi00NjA1LTgyMzktMzJiZGRjMGQ5ZGUyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDAxMjU1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcwZTkyZTIxYTE5NGUxY2RiMDM5YWU4N2VmZGNhOThiZGVkY2E3M2QxN2ZjOGRiYmNlNDkyNDk1NDgzMmRkYTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wsDaLMN2PNquI0ZnYx4r_QUFOKoPeQVoJSNQW9S3nDQ)
Why It's Good For The Game
Bugs bad, fixes this report on Discord:
Changelog
fix: Fixes the thermal vision gained from Visceratika 2 and above to immediately work, now it turns on and off as it should.