mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 06:58:30 +01:00
reimplements attack and player logs (#19313)
* reomplements attack and player logs * right log cat * updates logging, makesDB optional * regex serarch * . * . * . * sucks * db load * . * . * db logging
This commit is contained in:
@@ -88,7 +88,7 @@
|
||||
take_charge(user, skipcharge)
|
||||
|
||||
before_cast(targets) //applies any overlays and effects
|
||||
user.attack_log += text("\[[time_stamp()]\] [span_red("[user.real_name] ([user.ckey]) cast the spell [name].")]")
|
||||
add_attack_logs(user, targets, "casted the spell [name]")
|
||||
if(prob(critfailchance))
|
||||
critfail(targets, user)
|
||||
else
|
||||
|
||||
@@ -283,7 +283,7 @@
|
||||
else
|
||||
user.add_spell(S)
|
||||
to_chat(user, span_notice("you rapidly read through the arcane book. Suddenly you realize you understand [spellname]!"))
|
||||
user.attack_log += text("\[[time_stamp()]\] [span_orange("[user.real_name] ([user.ckey]) learned the spell [spellname] ([S]).")]")
|
||||
add_attack_logs(user, src, "learned the spell [spellname] ([S]).")
|
||||
onlearned(user)
|
||||
|
||||
/obj/item/spellbook/oneuse/proc/recoil(mob/user as mob)
|
||||
|
||||
Reference in New Issue
Block a user