MCPcopy Create free account
hub / github.com/PCGen/pcgen / getSpellBaseStat

Method getSpellBaseStat

code/src/java/pcgen/core/PCClass.java:320–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

318 * PCClass for PCClassLevel creation (in the factory)
319 */
320 public final String getSpellBaseStat()
321 {
322 Boolean useStat = get(ObjectKey.USE_SPELL_SPELL_STAT);
323 if (useStat == null)
324 {
325 return "None";
326 }
327 else if (useStat)
328 {
329 return "SPELL";
330 }
331 Boolean otherCaster = get(ObjectKey.CASTER_WITHOUT_SPELL_STAT);
332 if (otherCaster)
333 {
334 return "OTHER";
335 }
336 CDOMSingleRef<PCStat> ss = get(ObjectKey.SPELL_STAT);
337 //TODO This could be null, do we need to worry about it?
338 return ss.get().getKeyName();
339 }
340
341 /*
342 * FINALPCCLASSANDLEVEL This is required in PCClassLevel and should be present in

Callers 6

getTokenMethod · 0.95
getTokenMethod · 0.95
getHTMLInfoMethod · 0.95
getBaseStatMethod · 0.95
appendClassLinesMethod · 0.95
getClassInfoMethod · 0.80

Calls 2

getMethod · 0.65
getKeyNameMethod · 0.65

Tested by

no test coverage detected