this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

turn comments into function docs '//' to '///'

nnuuvv b7e6c374 f4889aa8

+44 -44
+44 -44
src/condition_overload.gleam
··· 23 23 } 24 24 } 25 25 26 - // do search and print result if any 27 - // 26 + /// do search and print result if any 27 + /// 28 28 fn do_search(search: String) { 29 29 [ 30 30 "https://wiki.warframe.com/w/Condition_Overload_%28Mechanic%29?action=edit&section=7", ··· 59 59 Nil 60 60 } 61 61 62 - // format row into human readable string 63 - // 62 + /// format row into human readable string 63 + /// 64 64 fn format_row(row: Row) -> String { 65 65 let rating = case row { 66 66 Row(math_behavior: "Multiplying", ..) -> "very good" ··· 111 111 <> " interaction with GunCO." 112 112 } 113 113 114 - // do request and return Row if successful 115 - // 114 + /// do request and return Row if successful 115 + /// 116 116 fn get_gun_page_data( 117 117 url: String, 118 118 ) -> promise.Promise(Result(List(Row), fetch.FetchError)) { ··· 131 131 promise.resolve(Ok(rows)) 132 132 } 133 133 134 - // discards the html and returns only the raw text from the textarea 135 - // 134 + /// discards the html and returns only the raw text from the textarea 135 + /// 136 136 fn get_text_area(html_text: String) -> Result(String, Nil) { 137 137 html_text 138 138 // trim to start of textarea ··· 166 166 ) 167 167 } 168 168 169 - // Parse data line by line from the following formats: 170 - // 171 - // !Weapon!!Attack Name!!Projectile Type!!Attack Unmodded Damage!!Actual CO Damage Bonus at +100%!!CO Damage Bonus Relative To Base Damage!!Math/Behavior Type!!Notes 172 - // 173 - // single name - one line 174 - // 175 - // |{{Weapon|Ambassador}}||Alt-fire Hitscan AoE||AoE||800||600||75%||Adding||Radial hit only receives CO bonus on target directly hit by laser. CO-bonus scales off hitscan damage. AoE does not scale off multishot. 176 - // |- 177 - // 178 - // multi name - one line 179 - // 180 - // |{{Weapon|Braton}}/{{Weapon|MK1-Braton|MK1}}/{{Weapon|Braton Prime|Prime}}/{{Weapon|Braton Vandal|Vandal}}||Incarnon Form AoE||AoE||74||70||95%||Adding||Listed values for Braton Prime with inactive Daring Reverie. Radial hit only receives CO bonus on target directly hit by bullet. AoE does not scale off multishot. 181 - // |- 182 - // 183 - // multi line - single & multi name 184 - // 185 - // |{{Weapon|Evensong}} 186 - // |Charged Radial Attack 187 - // |AoE 188 - // |150 189 - // |0 190 - // |0% 191 - // |N/A 192 - // |Does not apply 193 - // |- 194 - // 195 - // as well as both mixed, into row type 196 - // 197 - // 169 + /// Parse data line by line from the following formats: 170 + /// 171 + /// !Weapon!!Attack Name!!Projectile Type!!Attack Unmodded Damage!!Actual CO Damage Bonus at +100%!!CO Damage Bonus Relative To Base Damage!!Math/Behavior Type!!Notes 172 + /// 173 + /// single name - one line 174 + /// 175 + /// |{{Weapon|Ambassador}}||Alt-fire Hitscan AoE||AoE||800||600||75%||Adding||Radial hit only receives CO bonus on target directly hit by laser. CO-bonus scales off hitscan damage. AoE does not scale off multishot. 176 + /// |- 177 + /// 178 + /// multi name - one line 179 + /// 180 + /// |{{Weapon|Braton}}/{{Weapon|MK1-Braton|MK1}}/{{Weapon|Braton Prime|Prime}}/{{Weapon|Braton Vandal|Vandal}}||Incarnon Form AoE||AoE||74||70||95%||Adding||Listed values for Braton Prime with inactive Daring Reverie. Radial hit only receives CO bonus on target directly hit by bullet. AoE does not scale off multishot. 181 + /// |- 182 + /// 183 + /// multi line - single & multi name 184 + /// 185 + /// |{{Weapon|Evensong}} 186 + /// |Charged Radial Attack 187 + /// |AoE 188 + /// |150 189 + /// |0 190 + /// |0% 191 + /// |N/A 192 + /// |Does not apply 193 + /// |- 194 + /// 195 + /// as well as both mixed, into row type 196 + /// 197 + /// 198 198 fn process_lines(lines: List(String), acc: List(Row)) -> List(Row) { 199 199 case lines { 200 200 ["|{{Weapon|" <> name_line, ..rest] -> { ··· 207 207 } 208 208 } 209 209 210 - // parses 1 'Row' type worth of data from the supplied lines 211 - // handles single line, multi line and mixed data 212 - // 210 + /// parses 1 'Row' type worth of data from the supplied lines 211 + /// handles single line, multi line and mixed data 212 + /// 213 213 fn parse_row(name_line: String, lines: List(String)) -> #(Row, List(String)) { 214 214 let #(names, line_rest) = parse_names(name_line, []) 215 215 ··· 236 236 ) 237 237 } 238 238 239 - // parses the next value from the data 240 - // 239 + /// parses the next value from the data 240 + /// 241 241 fn parse_next_value( 242 242 line_rest: String, 243 243 lines: List(String), ··· 267 267 } 268 268 } 269 269 270 - // parse the weapon names 271 - // 270 + /// parse the weapon names 271 + /// 272 272 fn parse_names(line: String, acc) { 273 273 let sep = splitter.new(["}}/{{Weapon|", "}}"]) 274 274