RF455-176 REQUEST: API MODULE - SO WE CAN FIX BUGS WITHOUT ALONE
rf455 v0.6.0 module API request. To fix gameplay rules on our side without waiting for server releases, please extend the Lua module API with:
Combat hooks with override: on_attack(attacker, target, kind, damage) called for every attack (player, MAU/unit, animus, siege, skill/force), able to change the damage or cancel it, and fired for holy targets (chips/keeper) too. Chip/holy verbs: rf.damage_holy(stone_race, amount, attacker_id) and read access to the chip HP/state. Death/revive hooks: player_died(id, killer) and player_revived(id). Effect verbs: rf.clear_effects(id, kind) (helps / curses / potions / all), rf.effects(id) to list them, and rf.buff(id, code, secs, level) with a level argument. Monster tuning: a hook or setting to pace monster swings by m_fAttSpd in milliseconds. Unit (MAU) hooks: unit_boarded(id, gauge) with the ability to set the hull, plus rider EXP in monster_killed. Tower hooks: tower_build(id, code, pos) able to refuse the build and to take items (rf.take_item(id, code, count)). A packet hook for module opcodes in both directions, already partly there with 7x/xx.
With these, most of our current server-side bugs become module code on our side.