MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / save_gamification_data

Method save_gamification_data

shared.py:1249–1259  ·  view source on GitHub ↗

Persist gamification progress to disk.

(self)

Source from the content-addressed store, hash-verified

1247 self.wifi_signal_dbm = None # Latest RSSI value for display
1248 self.wifi_signal_quality = None # Normalized 0-100 quality percentage
1249 self.pan_connected = False
1250 self.usb_active = False
1251 self.ragnarsays = "Hacking away..."
1252 self.ragnarorch_status = "IDLE"
1253 self.ragnarstatustext = "IDLE"
1254 self.ragnarstatustext2 = "Awakening..."
1255 self.scale_factor_x = self.width / self.config['ref_width']
1256 self.scale_factor_y = self.height / self.config['ref_height']
1257 self.text_frame_top = int(88 * self.scale_factor_y)
1258 self.text_frame_bottom = int(159 * self.scale_factor_y)
1259 self.y_text = self.text_frame_top + 2
1260 self.targetnbr = 0
1261 self.portnbr = 0
1262 self.vulnnbr = 0

Callers 2

update_statsMethod · 0.95

Calls 3

dumpMethod · 0.80
errorMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected