Files
CHOMPStation2/code/game/gamemodes/malfunction/malf_research_ability.dm
CHOMPStation2StaffMirrorBot 65f21fb1d3 [MIRROR] end of file Fix (#10355)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2025-03-11 17:58:14 +01:00

14 lines
651 B
Plaintext

/datum/malf_research_ability
var/ability = null // Path to verb which will be given to the AI when researched.
var/name = "Unknown Ability" // Name of this ability
var/price = 0 // Amount of CPU time needed to unlock this ability.
var/invested = 0 // Amount of CPU time already used to research this ability. When larger or equal to price unlocks the ability.
var/unlocked = 0 // Changed to 1 when fully researched.
var/datum/malf_research_ability/next = null // Next research (if applicable).
/datum/malf_research_ability/process(var/time = 0)
invested += time
if(invested >= price)
unlocked = 1