Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Calculate-Functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,23 @@ context.beat_boss -- boolean value to flag whether a Boss Blind is active
context.card_effects -- this is a table of effects that has been calculated during the end of round step
```

---
#### context.modify_blind_chips
This context is used to modify a blind's chip goal .

```lua
if context.modify_blind_chips then
```

```lua
context.modify_blind_chips -- boolean value to flag this context, always TRUE
context.blind -- a reference to the blind that will be modified
context.multiplier -- the multiplier value the blind uses to modify from the base ante amount (i.e. 1.5 for Big Blind)
context.blind_chips -- the blind's chip goal
```
>[!TIP]
>Returning `modify` as a number will set the chip goal to that number

---
#### context.setting_blind
This context is used for effects when the blind is started.
Expand Down Expand Up @@ -906,6 +923,21 @@ if context.round_eval then
>[!NOTE]
>You can call `add_round_eval_row` in this context to add to the cash out display.

---
#### context.modify_final_cashout
This context is used to manipulate the final cashout value.

```lua
if context.modify_final_cashout then
```

```lua
context.modify_final_cashout -- boolean value to flag this context, always TRUE
context.dollars -- the current final cashout value
```
>[!TIP]
>Returning `cashout_mod` as a number will change the cashout value by that number and automatically add a row to the cashout report

---
#### context.modify_ante
This context is used when the ante is about to change. Returning `modify = number` will change the amount that the ante will change by.
Expand Down