MCPcopy Create free account
hub / github.com/SpaceNetLab/StarryNet / do_set_damage

Method do_set_damage

starrynet/cli.py:181–185  ·  view source on GitHub ↗

set a random damage of a given ratio at a certain time, which will be processed during emulation

(self, line)

Source from the content-addressed store, hash-verified

179 self.sn.get_utility(int(arg))
180
181 def do_set_damage(self, line):
182 "set a random damage of a given ratio at a certain time, which will be processed during emulation"
183 arg, args, line = self.parseline(line)
184 rest = line.split(' ')
185 self.sn.set_damage(float(rest[0]), int(rest[1]))
186
187 def do_set_recovery(self, line):
188 "set a recovery of the damages at a certain time, which will be processed during emulation"

Callers

nothing calls this directly

Calls 1

set_damageMethod · 0.80

Tested by

no test coverage detected