Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a0d22862ca | ||
|
|
72d3866d65 |
+5
-4
@@ -1,12 +1,12 @@
|
||||
from collections import namedtuple
|
||||
import logging
|
||||
import re
|
||||
import math
|
||||
import lark
|
||||
|
||||
|
||||
class SendToNegative: # pylint: disable=too-few-public-methods
|
||||
NAME = "Send to Negative"
|
||||
VERSION = "2.1"
|
||||
VERSION = "2.1.2"
|
||||
|
||||
DEFAULT_SEPARATOR = ", "
|
||||
|
||||
@@ -35,7 +35,7 @@ class SendToNegative: # pylint: disable=too-few-public-methods
|
||||
iN - tags the position of insertion point N. Used only in the negative prompt and does not accept content. N can be 0 to 9.
|
||||
"""
|
||||
self.__logger = log
|
||||
if opts is not None and opts.prompt_attention == "Compel parser":
|
||||
if opts is not None and getattr(opts, "prompt_attention", "") == "Compel parser":
|
||||
self.__logger.warning("Compel parser is not supported!")
|
||||
self.__ignore_repeats = (
|
||||
ignore_repeats if ignore_repeats is not None else getattr(opts, "stn_ignorerepeats", True)
|
||||
@@ -179,7 +179,8 @@ class SendToNegative: # pylint: disable=too-few-public-methods
|
||||
if nt.shell[i].type == "at" and nt.shell[i - 1].type == "at":
|
||||
nt.shell[i - 1] = self.AccumulatedShell(
|
||||
"at",
|
||||
(100 * nt.shell[i - 1].info1 * nt.shell[i].info1) / 100, # we limit to two decimals
|
||||
math.floor(100 * nt.shell[i - 1].info1 * nt.shell[i].info1)
|
||||
/ 100, # we limit to two decimals
|
||||
None,
|
||||
)
|
||||
nt.shell.pop(i)
|
||||
|
||||
Reference in New Issue
Block a user