MCPcopy Create free account
hub / github.com/Norbyte/ositools / DoExperiment

Function DoExperiment

OsiInterface/Functions/FunctionLibrary.cpp:62–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 void DoExperiment(OsiArgumentDesc const & args)
63 {
64 auto character = FindCharacterByNameGuid(args[0].String);
65 if (character) {
66 auto stats = character->Stats->DynamicStats[1];
67 stats->PoisonResistance += 50;
68 stats->APStart += 3;
69 stats->APRecovery += 3;
70
71 auto stats0 = character->Stats->DynamicStats[0];
72 stats0->PoisonResistance += 50;
73 OsiError("DoExperiment(): Applied to character");
74 }
75
76 auto item = FindItemByNameGuid(args[1].String);
77 if (item) {
78 auto stats = item->StatsDynamic->DynamicAttributes_Start[1];
79 stats->FireResistance += 50;
80
81 auto stats0 = item->StatsDynamic->DynamicAttributes_Start[0];
82 stats0->FireResistance += 50;
83 OsiError("DoExperiment(): Applied to item");
84 }
85
86 OsiError("Nothing to see here");
87 }
88 }
89
90 void ExtensionState::Reset()

Callers

nothing calls this directly

Calls 2

FindCharacterByNameGuidFunction · 0.85
FindItemByNameGuidFunction · 0.85

Tested by

no test coverage detected