mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
update skill check information
This commit is contained in:
1 parent
23b2bb8b87
commit
90aa2b2d97
1 file changed
+6
@@ -29,6 +29,10 @@ lib.skillCheck(difficulty)
|
||||
* difficulty: `easy` or `medium` or `hard` or `object`
|
||||
* Can set custom difficulty by sending a object instead of string
|
||||
* { areaSize: `number`, speedMultiplier: `number` }
|
||||
* easy: { areaSize: 275, speedMultiplier: 1 }
|
||||
* medium: { areaSize: 290, speedMultiplier: 1.5 }
|
||||
* hard: { areaSize: 295, speedMultiplier: 1.75 }
|
||||
* `areaSize` works inverse, so smaller value means bigger zone.
|
||||
* Sending an array will chain the checks together and return false if one fails and true if all succeed
|
||||
|
||||
### Usage Example
|
||||
@@ -49,3 +53,5 @@ const success = await lib.skillCheck(['easy', 'easy', {areaSize: 250, speedMulti
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||

|
||||
Reference in new issue
Block a user