From 9d34436d3f3605e9e2d95f5742c4eabf6c849bcb Mon Sep 17 00:00:00 2001 From: endernon Date: Sat, 11 Jan 2025 16:10:06 +0000 Subject: [PATCH] comment reorganise --- src/encode.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/encode.rs b/src/encode.rs index 393ec67..c1e9dc1 100644 --- a/src/encode.rs +++ b/src/encode.rs @@ -55,9 +55,10 @@ impl FuncParams<'_> { } effect_strength_fr = effstr } else { - let current_percentage = real_dura.dura_cur / real_dura.dura_max; // percentage of max durability - // see this answer from Stackoverflow for transcribing range - // https://stackoverflow.com/a/929107 + // percentage of max durability + let current_percentage = real_dura.dura_cur / real_dura.dura_max; + // see this answer from Stackoverflow for transcribing range + // https://stackoverflow.com/a/929107 match current_percentage { 50..=100 => { // dura more than or equal to 50%