Jester time
This commit is contained in:
@@ -180,6 +180,12 @@ export interface LivingRef {
|
||||
// cause is for events and the death message, like "magic"
|
||||
damage(amount: number, cause?: string): void;
|
||||
heal(amount: number): void;
|
||||
// its stats, like Player's: "cubi:movement_speed", "cubi:attack_damage"... a mob's modifiers are saved with it
|
||||
attribute(id: Id): number;
|
||||
// replaces one with the same id on that attribute
|
||||
add_modifier(attribute: Id, modifier: AttributeModifier): void;
|
||||
// whether it had it
|
||||
remove_modifier(attribute: Id, id: string): boolean;
|
||||
}
|
||||
|
||||
export interface ComponentRegistry {
|
||||
|
||||
Reference in New Issue
Block a user