Fix skill related runtimes in mindless mobs. (#53691)

Fixes related to mindless mobs using skills
This commit is contained in:
Timberpoes
2020-09-24 13:32:22 +02:00
committed by GitHub
parent 4937ab14f5
commit 357d272935
10 changed files with 103 additions and 67 deletions
@@ -97,8 +97,11 @@
if(computer)
printer = computer.all_components[MC_PRINT]
var/gamerSkillLevel = usr.mind?.get_skill_level(/datum/skill/gaming)
var/gamerSkill = usr.mind?.get_skill_modifier(/datum/skill/gaming, SKILL_RANDS_MODIFIER)
var/gamerSkillLevel = 0
var/gamerSkill = 0
if(usr?.mind)
gamerSkillLevel = usr.mind.get_skill_level(/datum/skill/gaming)
gamerSkill = usr.mind.get_skill_modifier(/datum/skill/gaming, SKILL_RANDS_MODIFIER)
switch(action)
if("Attack")
var/attackamt = 0 //Spam prevention.