Skip to content

Commit

Permalink
Update api.md
Browse files Browse the repository at this point in the history
Radiation functions moved to Radiation section.
  • Loading branch information
DustyDave961 authored Oct 20, 2024
1 parent cf01860 commit feb853c
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions technic/doc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,6 @@ Unsorted functions:
* Some configuration function
* `technic.tube_inject_item(pos, start_pos, velocity, item)`
* Same as `pipeworks.tube_inject_item`
* `technic.register_rad_resistance(node_name, resistance)`
* Sets the radiation resistance of the given node.
* `node_name`: name of the node
* `resistance`: number, radiation resistance of the node
* `technic.register_group_resistance(group_name, resistance)`
* Sets the radiation resistance of the given group of nodes.
* `group_name`: name of the group
* `resistance`: number, radiation resistance of the group

### Energy modifiers
* `technic.set_RE_wear(itemstack, item_load, max_charge)`
Expand Down Expand Up @@ -280,6 +272,20 @@ Network functionality:
5. If the total demand is more than the available power all RE nodes will be shut
down. We have a brown-out situation.


## Radiation
* `technic.register_rad_resistance(node_name, resistance)`
* Sets the radiation resistance of the given node.
* `node_name`: name of the node
* `resistance`: number, radiation resistance of the node
* `technic.register_group_resistance(group_name, resistance)`
* Sets the radiation resistance of the given group of nodes.
* `group_name`: name of the group
* `resistance`: number, radiation resistance of the group
* `technic.cache_resistances()`
* Cache radiation resistances after Technic loads.


## Deprecated functions

Following functions are either no longer used by technic, or are planned to
Expand Down

0 comments on commit feb853c

Please sign in to comment.