MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / isPossible

Method isPossible

code/main/Enchantment.ts:22–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 }
21
22 public isPossible(): boolean{ // Is the enchatment possible?
23 // If we have the before item but not the after item, we return true
24 if(this.beforeItem.isPossessed() == true && this.afterItem.isPossessed() == false)
25 return true;
26
27 // Else we return false
28 return false;
29 }
30
31 // Public getters
32 public getAfterItem(): EnchantmentItem{

Callers 1

Calls 1

isPossessedMethod · 0.45

Tested by

no test coverage detected