holopay

Vars | |
force_fee | Replaces the "pay whatever" functionality with a set amount when non-zero. |
---|---|
linked_card | ID linked to the holopay |
max_holo_range | Max range at which the hologram can be projected before it deletes |
shop_logo | The holopay shop icon displayed in the UI |
Procs | |
alert_buyer | Account checks If the user has enough money, ask them the amount or charge the force fee Exit checks in case the user cancelled or entered an invalid amount Success: Alert the buyer Alerts the owner of the transaction. |
assign_card | Links the source card to the holopay. Begins checking if its in range. |
attackby_secondary | Users can pay with an ID to skip the UI Users can also pay by holochip Account checks Charges force fee or uses pay what you want Exit sanity checks Success: Alert buyer Throws errors if they try to use space cash |
dissipate | Creates holopay vanishing effects. Deletes the holopay thereafter. |
handle_move | A periodic check to see if the projecting card is nearby. Deletes the holopay if not. |
process_payment | Initiates a transaction between accounts. |
track | Start checking if the source projection is in range |
ui_interact | Can kill it by right-clicking with ID because it seems useful and intuitive, to me, at least |
Var Details
force_fee

Replaces the "pay whatever" functionality with a set amount when non-zero.
linked_card

ID linked to the holopay
max_holo_range

Max range at which the hologram can be projected before it deletes
shop_logo

The holopay shop icon displayed in the UI
Proc Details
alert_buyer
Account checks If the user has enough money, ask them the amount or charge the force fee Exit checks in case the user cancelled or entered an invalid amount Success: Alert the buyer Alerts the owner of the transaction.
Parameters:
- payee - The user who initiated the transaction.
- amount - The amount of money that was paid. Returns:
- TRUE - alert was successful.
assign_card
Links the source card to the holopay. Begins checking if its in range.
Parameters:
- turf/target - The tile to project the holopay onto
- obj/item/card/id/card - The card to link to the holopay Returns:
- TRUE - the card was linked
attackby_secondary
Users can pay with an ID to skip the UI Users can also pay by holochip Account checks Charges force fee or uses pay what you want Exit sanity checks Success: Alert buyer Throws errors if they try to use space cash
dissipate
Creates holopay vanishing effects. Deletes the holopay thereafter.
handle_move
A periodic check to see if the projecting card is nearby. Deletes the holopay if not.
process_payment
Initiates a transaction between accounts.
Parameters:
- mob/living/user - The user who initiated the transaction. Returns:
- TRUE - transaction was successful
track
Start checking if the source projection is in range
ui_interact
Can kill it by right-clicking with ID because it seems useful and intuitive, to me, at least