Möchte die beiden Systeme kombinieren.. wie mach ich das nun?
So geht es nicht.. 1 System funkt. dann nicht
Python
- def BINARY_NEW_AddAffect(self, type, pointIdx, value, duration):
- print "BINARY_NEW_AddAffect", type, pointIdx, value, duration
- if (app.ENABLE_AFFECT_POLYMORPH_REMOVE):
- if type < 500 and type != chr.NEW_AFFECT_POLYMORPH:
- return
- elif app.ENABLE_NEW_AFFECT_POTION:
- if type < 500 and not type in (mainAffectPotion["affect"][i] for i in xrange(len(mainAffectPotion["affect"]))):
- return
- else:
- if type < 500:
- return
Python
- #1.) Search for:
- if type < 500:
- return
- #2.) Replace line with:
- if (app.ENABLE_AFFECT_POLYMORPH_REMOVE):
- if type < 500 and type != chr.NEW_AFFECT_POLYMORPH:
- return
- else:
- if type < 500:
- return
- und
- #1.) Search:
- if type < 500:
- return
- #2.) Delete and replaced with:
- if app.ENABLE_NEW_AFFECT_POTION:
- if type < 500 and not type in mainAffectPotion["affect"]:
- return
- else:
- if type < 500:
- return