Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upEnable the wraith monster #13342
Conversation
BevapDin
added some commits
Aug 18, 2015
This comment has been minimized.
This comment has been minimized.
|
C-C-C-C-ombo breaker. 2015-08-18 17:21 GMT+03:00 BevapDin notifications@github.com:
|
This comment has been minimized.
This comment has been minimized.
|
Gj btw =) |
This comment has been minimized.
This comment has been minimized.
|
Oh wow, that's one of those "how did no one notice this" sorta things. What faction are they supposed to be anyway, cultist I'm guessing? |
This comment has been minimized.
This comment has been minimized.
|
I barely recall this critter, and I was never aware that the wraith actually got added - well, sorta added, anyway. Nice work, @BevapDin! |
This comment has been minimized.
This comment has been minimized.
|
I had always assumed it was an obscure spawn, when I noticed it was unsprited in Mshock's set while working on the modded version. So at least it'll have some graphical support for when it makes its year-and-a-half belated debut. X3 |
BevapDin commentedAug 18, 2015
(I found this via #13333, thanks to @VlasovVitaly for inquiring the "darkness" effect. One gets this effect via the
mattack::darkman("DARKMAN" in JSON), which is only used by the monster "mon_darkman", named "wraith" in game).The monster "mon_darkman" was introduced by #4570, but the spawning of it was lost during the merge. (The last commit of the PR was on Nov 23, 2013, it was merged on Mar 2, 2014, which explains the merge problems.)
Seriously: check out dce396d, the last commit from that PR and search for "mon_darkman" and "darkness", then check out the merge commit 88fb9d3 and search again (see also that the merge commit does not touch src/mapgen.cpp and src/player.cpp at all).
And nobody noticed. It's been nearly 1.5 years. The whole
monattack::darkmanfunction and probably the death function as well were not used at all. Did I mention 1.5 years? The "darkness" effect is not used at all. There are several tileset commits that mention it. @John-Candlebury, didn't you miss your own creation for all the time?Oh, and the effects of the "darkness" effect are not really applied. The effect only changes the color of all things around the character to gray (see
map::draw_maptile, the only real reference to it). It's referenced in other parts, but for no effect: monattack.cpp: added from a never spawning monster (since 1.5 years!), mondeath.cpp: removed when the never spawning monster dies (there's an interesting philosophical dilemma in there, somewhere), player.cpp: removed when in sunlight (but where to get it from, 1.5 years).I re-added the spawning and the effects of the effects.
I'm still not over the 1.5 years and I'll never will (-: