Skip to content

Commit

Permalink
You can now have 3 level 1 skills
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitsunemitsu committed Oct 9, 2024
1 parent 715f027 commit 672d731
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion code/game/objects/items/fixerskills/skills.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,19 @@
/datum/action/cooldown/firstaid = 1,
/datum/action/cooldown/meditation = 1,
/datum/action/cooldown/hunkerdown = 1,

/datum/action/cooldown/shockwave = 2,
/datum/action/cooldown/butcher = 2,
/datum/action/cooldown/solarflare = 2,
/datum/action/cooldown/confusion = 2,
/datum/action/cooldown/lockpick = 2,
/datum/action/cooldown/lifesteal = 2,

/datum/action/innate/healthhud = 3,
/datum/action/innate/bulletproof = 3,
/datum/action/innate/battleready = 3,
/datum/action/innate/fleetfoot = 3,

/datum/action/cooldown/timestop = 4,
/datum/action/cooldown/reraise = 4,
/datum/action/cooldown/dismember = 4,
Expand All @@ -43,8 +47,16 @@
if (!(user?.mind?.assigned_role in list("Civilian")))
to_chat(user, span_notice("Only Civilians can use this book!"))
return FALSE

var/allowed_level1_skills = 3
for(var/datum/action/A in user.actions)
if (actions_levels[A.type] == level)
if (actions_levels[A.type] == level && level == 1)
allowed_level1_skills -= 1
if(allowed_level1_skills == 0)
to_chat(user, span_notice("You are only allowed 3 skills of this level!"))
return FALSE

if (actions_levels[A.type] == level && level != 1)
to_chat(user, span_notice("You already have a skill of this level!"))
return FALSE

Expand Down

0 comments on commit 672d731

Please sign in to comment.