Implemented a property that will allow a spawnable to be acted on a variable number of times before being consumed.
This commit is contained in:
@@ -21,4 +21,8 @@ public class Spawnable
|
||||
|
||||
// If true, the spawnable item is removed after a successful action
|
||||
public bool ConsumeOnSuccess { get; set; } = false;
|
||||
|
||||
// Number of times this spawnable can be successfully acted upon
|
||||
// before it is removed. A value of 0 means unlimited uses.
|
||||
public int Uses { get; set; } = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user