more elegant weapon modding, on-hit triggers, and status string changes; also fixed crash on vampirism

This commit is contained in:
Zeno Rogue
2025-12-23 23:15:51 +01:00
parent db0d8676a0
commit 9521e314cd
6 changed files with 131 additions and 82 deletions
+4
View File
@@ -16,6 +16,10 @@ void power::hs(stater& s) {
void randeff::hs(stater& s) {
string str = which_weapon ? which_weapon->id : "NONE";
s.act("wpn", str, "NONE");
s.act("a", a, 0);
s.act("b", a, 0);
s.act("c", a, 0);
s.act("d", a, 0);
try {
which_weapon = (str != "NONE") ? &find_power_by_id(str) : nullptr;
}