mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
14 lines
651 B
Plaintext
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
|