[crossfire] [Crossfire-cvs] SF.net SVN: crossfire: [5334] server/trunk

Andreas Kirschbaum kirschbaum at myrealbox.com
Sun Jan 21 05:42:44 CST 2007


Crossfire CVS repository messages. wrote:
> Log Message:
> -----------
> Implement feature request #656195: More effects of confusion.
[...]
> Modified: server/trunk/include/spells.h
[...]
> +    flower = create_archetype("flowers_permanent");
> +
> +    if (QUERY_FLAG(item, FLAG_APPLIED))
> +        manual_apply(op, item, AP_NOPRINT | AP_IGNORE_CURSE | AP_UNAPPLY);
> +    remove_ob(item);
[...]
> +    case FORCE_TRANSFORMED_ITEM:
> +            /* The force is into the item that was created */
> +            if (op->env != NULL && op->inv != NULL) {
> +                object* inv = op->inv;
> +                object* pl = get_player_container(op);
> +                remove_ob(inv);
> +                inv->weight = (inv->nrof ? (sint32)(op->env->weight / inv->nrof) : op->env->weight);
> +                if (op->env->env) {
> +                    insert_ob_in_ob(inv, op->env->env);
> +                    if (pl) {
> +                        esrv_send_item(pl, inv);
> +                        draw_ext_info_format(NDI_UNIQUE, 0,pl,
> +                            MSG_TYPE_ITEM, MSG_TYPE_ITEM_CHANGE,
> +                            "Your %s recovers its original form.",
> +                            "Your %s recovers its original form.",
> +                            query_short_name(inv));

This code seems to neglect applied cursed items when the spell effect
wears off: I think it might be possible to unwear such items by forcing
spell failures until the cursed item was transformed into a flower. Is
this an intended feature?



More information about the crossfire mailing list