DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ DepleteWritingImplement()

void WrittenNoteData::DepleteWritingImplement ( notnull ItemBase pen,
string old_text,
string new_text )
inlineprotected

См. определение в файле WrittenNoteData.c строка 83

84 {
85 float qty_per_char = 1.0;
86 float decrease = Math.Clamp((new_text.Length() - old_text.Length()),0,pen.GetQuantityMax());
87 pen.AddQuantity(-(qty_per_char * decrease));
88 }
proto native int Length()
Returns length of string.

Перекрестные ссылки Math::Clamp() и string::Length().

Используется в OnRPC().